1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-07 21:32:56 +00:00

More explicit and defensive code so if the init fails we know we handling this pointer safely, because rc_config_init will free the pointer if there was a problem, but it will not set the pointer to NULL.

This commit is contained in:
William King 2013-05-24 19:49:20 -07:00
parent dc4209275d
commit b42ee84933

@ -55,6 +55,7 @@ switch_status_t mod_xml_radius_new_handle(rc_handle **new_handle, switch_xml_t x
}
if ( rc_config_init(*new_handle) == NULL ) {
*new_handle = NULL;
goto err;
}