summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c
index ca50b6f4..457c991d 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -239,7 +239,7 @@ int osmo_sock_init2(uint16_t family, uint16_t type, uint8_t proto,
rp->ai_protocol = proto;
}
- if (!sfd) {
+ if (sfd < 0) {
sfd = socket_helper(rp, flags);
if (sfd < 0)
continue;