summaryrefslogtreecommitdiff
path: root/src/socket-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-04-12 20:26:33 +0200
committerLennart Poettering <lennart@poettering.net>2011-04-12 20:26:33 +0200
commit5a2b80ceb20876e80907d0b7f7915afb20f716e6 (patch)
treefb91e7508143afe2b4b64ab310edf562681097f1 /src/socket-util.c
parent90a5f6e42a7422b6033be5d0fe2bf48ea6b91b98 (diff)
socket: fix check for SEQPACKET
Diffstat (limited to 'src/socket-util.c')
-rw-r--r--src/socket-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket-util.c b/src/socket-util.c
index 4c28946b71..779850d37f 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;