From: Lennart Poettering Date: Tue, 12 Apr 2011 18:26:33 +0000 (+0200) Subject: socket: fix check for SEQPACKET X-Git-Tag: v25~65 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a2b80ceb20876e80907d0b7f7915afb20f716e6;p=systemd socket: fix check for SEQPACKET --- 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;