socket: fix check for SEQPACKET

This commit is contained in:
Lennart Poettering
2011-04-12 20:26:33 +02:00
parent 90a5f6e42a
commit 5a2b80ceb2
+1 -1
View 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;