chiark / gitweb /
man: document behaviour of ListenStream= with only a port number in regards to IPv4...
[elogind.git] / src / shared / socket-util.c
index 7e65f8a691871218afe9a253068147cde8927460..4908403d9fe4a447b12142a5db2823e70de33422 100644 (file)
@@ -167,7 +167,8 @@ int socket_address_parse(SocketAddress *a, const char *s) {
                 } else {
 
                         /* Just a port */
-                        if ((r = safe_atou(s, &u)) < 0)
+                        r = safe_atou(s, &u);
+                        if (r < 0)
                                 return r;
 
                         if (u <= 0 || u > 0xFFFF)