Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Mar 7, 2017
1 parent 14a8555 commit 3f820c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/udprelay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3f820c6

Please sign in to comment.