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_3_0_0_beta0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67f66cdf8676471fedcdd84b8e3dc1e41f22a0b9;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 9f6ba0ebf01..e9864d547ae 100644 --- a/src/main/client.c +++ b/src/main/client.c @@ -1173,6 +1173,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) { @@ -1193,8 +1194,6 @@ RADCLIENT *client_read(const char *filename, int in_server, int flag) return NULL; } - - return c; } #endif