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
6320042f6b
commit
47c6981a9f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue