|
|
|
@ -805,10 +805,9 @@ static void release_port(socket_t *r, struct intf_spec *spec) { |
|
|
|
|
|
|
|
__C_DBG("trying to release port %u", port); |
|
|
|
|
|
|
|
iptables_del_rule(r); |
|
|
|
|
|
|
|
if (close_socket(r) == 0) { |
|
|
|
__C_DBG("port %u is released", port); |
|
|
|
iptables_del_rule(r); |
|
|
|
bit_array_clear(pp->ports_used, port); |
|
|
|
g_atomic_int_inc(&pp->free_ports); |
|
|
|
if ((port & 1) == 0) { |
|
|
|
@ -2659,6 +2658,7 @@ struct stream_fd *stream_fd_new(socket_t *fd, struct call *call, const struct lo |
|
|
|
if (p) { |
|
|
|
if (poller_add_item(p, &pi)) |
|
|
|
ilog(LOG_ERR, "Failed to add stream_fd to poller"); |
|
|
|
sfd->poller = p; |
|
|
|
} |
|
|
|
|
|
|
|
return sfd; |
|
|
|
|