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 4c28946b71aba85f90728c34e4ff166b7ebea420..779850d37fa137cd8a702ca7e1df515e6ba3ac96 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;