chiark / gitweb /
units: never pull in sysinit from utmp, so that we can shutdown from emergency mode...
[elogind.git] / 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;