]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't die if the clients file doesn't contain client <name> {}
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 7 Sep 2012 16:01:59 +0000 (17:01 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 7 Sep 2012 16:02:31 +0000 (17:02 +0100)
src/main/client.c

index 9f6ba0ebf01feaff01d983a5573391acabd27c00..e9864d547ae5d5a0c96bc491ecc132f23579a318 100644 (file)
@@ -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