mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-19 09:47:23 +00:00
fix mem corruption on failed register
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13230 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d548de40cc
commit
ad0aaa6dd5
@ -537,8 +537,7 @@ void sofia_event_callback(nua_event_t event,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((sofia_private && sofia_private == &mod_sofia_globals.destroy_private) ||
|
if ((sofia_private && sofia_private == &mod_sofia_globals.destroy_private)) {
|
||||||
(!session && (status >= 300 && status != 401 && status != 407))) {
|
|
||||||
nua_handle_bind(nh, NULL);
|
nua_handle_bind(nh, NULL);
|
||||||
nua_handle_destroy(nh);
|
nua_handle_destroy(nh);
|
||||||
nh = NULL;
|
nh = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user