This commit is contained in:
Max Lv
2017-03-07 10:34:34 +08:00
parent 14a85558d0
commit 3f820c6fb8
+3 -2
View File
@@ -459,13 +459,14 @@ create_server_socket(const char *host, const char *port)
close(server_sock);
}
if (result)
freeaddrinfo(result);
if (rp == NULL) {
LOGE("[udp] cannot bind");
return -1;
}
freeaddrinfo(result);
return server_sock;
}