Commit 2db5859c authored by Pekka Pessi's avatar Pekka Pessi

Deregistering wait events.

darcs-hash:20060317130556-65a35-8b9b0a2426a1305c94e6d5461a26f259b8fc8bcb.gz
parent 60d4768f
...@@ -285,15 +285,22 @@ test_nat_deinit(su_root_t *root, struct nat *nat) ...@@ -285,15 +285,22 @@ test_nat_deinit(su_root_t *root, struct nat *nat)
su_root_deregister(root, b->in_register); su_root_deregister(root, b->in_register);
su_close(b->in_socket); su_close(b->in_socket);
if (b->out_register) if (b->out_register)
su_root_deregister(root, b->in_register); su_root_deregister(root, b->out_register);
su_close(b->out_socket); su_close(b->out_socket);
} }
if (nat->tcp_register)
su_root_deregister(root, nat->tcp_register);
if (nat->udp_register)
su_root_deregister(root, nat->udp_register);
if (nat->udp_socket != -1) if (nat->udp_socket != -1)
su_close(nat->udp_socket); su_close(nat->udp_socket);
if (nat->tcp_socket != -1) if (nat->tcp_socket != -1)
su_close(nat->tcp_socket); su_close(nat->tcp_socket);
su_freelocalinfo(nat->localinfo); su_freelocalinfo(nat->localinfo);
free(nat->tags); free(nat->tags);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment