chiark / gitweb /
socket: fix check for SEQPACKET
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2011 18:26:33 +0000 (20:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2011 18:26:33 +0000 (20:26 +0200)
src/socket-util.c

index 4c28946..779850d 100644 (file)
@@ -268,7 +268,7 @@ int socket_address_verify(const SocketAddress *a) {
                         }
                 }
 
-                if (a->type != SOCK_STREAM && a->type != SOCK_DGRAM && a->type == SOCK_SEQPACKET)
+                if (a->type != SOCK_STREAM && a->type != SOCK_DGRAM && a->type != SOCK_SEQPACKET)
                         return -EINVAL;
 
                 return 0;