Browse Source

Fix #1334

pull/1335/head
Max Lv 7 years ago
parent
commit
3f820c6fb8
1 changed files with 3 additions and 2 deletions
  1. 5
      src/udprelay.c

5
src/udprelay.c

@ -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;
}

Loading…
Cancel
Save