Commit f0c340ea authored by Kai Vehmanen's avatar Kai Vehmanen

Fixed segfault with stun_handle_destroy() on a NULL handle.

darcs-hash:20060404102212-7659e-6e3e76075395d80699844b8df9ac98b1e755d5f8.gz
parent 38af1bd7
......@@ -148,7 +148,8 @@ static int tport_udp_init_stun(tport_primary_t *pri,
static void tport_udp_deinit_stun(tport_primary_t *pri)
{
tport_stun_t *stunpri = (tport_stun_t *)pri;
stun_handle_destroy(stunpri->stunpri_handle);
if (stunpri->stunpri_handle)
stun_handle_destroy(stunpri->stunpri_handle);
stunpri->stunpri_handle = NULL;
}
......
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