From ad0aaa6dd5193b0b47e6cf8612f07135f4774bdc Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 4 May 2009 21:48:10 +0000 Subject: [PATCH] fix mem corruption on failed register git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13230 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index dd622755aa..901bddf0d4 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -537,8 +537,7 @@ void sofia_event_callback(nua_event_t event, break; } - if ((sofia_private && sofia_private == &mod_sofia_globals.destroy_private) || - (!session && (status >= 300 && status != 401 && status != 407))) { + if ((sofia_private && sofia_private == &mod_sofia_globals.destroy_private)) { nua_handle_bind(nh, NULL); nua_handle_destroy(nh); nh = NULL;