From 0d5fb320ce5c182aab4289b2c9a8e42ab68a5bae Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Sat, 21 May 2011 13:29:53 +0300 Subject: [PATCH] raw: Fix: check type for SOCK_DGRAM instead of SOCK_RAW. --- src/raw/swift_raw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raw/swift_raw.c b/src/raw/swift_raw.c index 84cb382..55510a2 100644 --- a/src/raw/swift_raw.c +++ b/src/raw/swift_raw.c @@ -179,7 +179,7 @@ int sw_socket(int __domain, int __type, int __protocol) int s; struct sock_list *list; - if (__domain != PF_INET || __type != SOCK_RAW || __protocol != IPPROTO_SWIFT) { + if (__domain != PF_INET || __type != SOCK_DGRAM || __protocol != IPPROTO_SWIFT) { errno = EINVAL; goto sock_err; } -- 2.20.1