FS-6128 FS-6200 --resolve allocating the sofia_private on the nua_handle seems to lead to memory corruption, changing it back to malloc as done in the version before the regression

This commit is contained in:
Anthony Minessale
2014-02-11 04:05:40 +05:00
parent 386a95f47d
commit c52ac4817c
2 changed files with 14 additions and 27 deletions
+2 -4
View File
@@ -1525,10 +1525,8 @@ static void our_sofia_event_callback(nua_event_t event,
sofia_gateway_t *gateway = NULL;
if ((gateway = sofia_reg_find_gateway(sofia_private->gateway_name))) {
nua_handle_bind(gateway->nh, NULL);
gateway->sofia_private = NULL;
nua_handle_destroy(gateway->nh);
gateway->nh = NULL;
gateway->state = REG_STATE_FAILED;
gateway->failure_status = status;
sofia_reg_release_gateway(gateway);
}
} else {