Skip to content

Commit

Permalink
Apple SSL (re #2482): Fixed listener creation which already incorpora…
Browse files Browse the repository at this point in the history
…tes port in the parameters
  • Loading branch information
sauwming committed Mar 10, 2021
1 parent 2d6dd96 commit e56870f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pjlib/src/pj/ssl_sock_apple.m
Expand Up @@ -1145,13 +1145,7 @@ static pj_status_t network_start_accept(pj_ssl_sock_t *ssock,
return status;

/* Create listener */
port = pj_sockaddr_get_port(localaddr);
if (port != 0) {
pj_utoa(port, port_str);
assock->listener = nw_listener_create_with_port(port_str, parameters);
} else {
assock->listener = nw_listener_create(parameters);
}
assock->listener = nw_listener_create(parameters);
nw_release(parameters);
if (!assock->listener) {
PJ_LOG(2, (THIS_FILE, "Failed creating listener"));
Expand Down

0 comments on commit e56870f

Please sign in to comment.