]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
More explicit and defensive code so if the init fails we know we handling this pointe...
authorWilliam King <william.king@quentustech.com>
Sat, 25 May 2013 02:49:20 +0000 (19:49 -0700)
committerWilliam King <william.king@quentustech.com>
Sat, 25 May 2013 02:49:20 +0000 (19:49 -0700)
src/mod/xml_int/mod_xml_radius/mod_xml_radius.c

index dc1c9fd6bd60691313e6d2591352e63a4d1bc2fd..00e0bc75079558a982d151de69d791baa3d031a8 100644 (file)
@@ -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;
        }