From 5a2b80ceb20876e80907d0b7f7915afb20f716e6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 12 Apr 2011 20:26:33 +0200 Subject: [PATCH] socket: fix check for SEQPACKET --- src/socket-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket-util.c b/src/socket-util.c index 4c28946b..779850d3 100644 --- a/src/socket-util.c +++ b/src/socket-util.c @@ -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; -- 2.39.5