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:
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 ) {
|
if ( rc_config_init(*new_handle) == NULL ) {
|
||||||
|
*new_handle = NULL;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue