From: Arran Cudbard-Bell Date: Fri, 7 Sep 2012 16:01:59 +0000 (+0100) Subject: Don't die if the clients file doesn't contain client {} X-Git-Tag: release_2_2_0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4aed23b92de429accb71bdb7607e9404219b8f88;p=thirdparty%2Ffreeradius-server.git Don't die if the clients file doesn't contain client {} --- diff --git a/src/main/client.c b/src/main/client.c index 408148a7bc1..970985bdb09 100644 --- a/src/main/client.c +++ b/src/main/client.c @@ -1130,6 +1130,7 @@ RADCLIENT *client_read(const char *filename, int in_server, int flag) } c = client_parse(cs, in_server); + if (!c) return NULL; p = strrchr(filename, FR_DIR_SEP); if (p) { @@ -1150,8 +1151,6 @@ RADCLIENT *client_read(const char *filename, int in_server, int flag) return NULL; } - - return c; } #endif