]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Check for NULL parameter
authorAlan T. DeKok <aland@freeradius.org>
Mon, 30 Jul 2012 16:48:04 +0000 (18:48 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 30 Jul 2012 16:48:04 +0000 (18:48 +0200)
src/main/client.c

index 2a06d869a28c2fb916613f087ce53fd786cc35f9..59a14d110cff04fa98cd382918faada80798e939 100644 (file)
@@ -63,6 +63,8 @@ static fr_fifo_t      *deleted_clients = NULL;
  */
 void client_free(RADCLIENT *client)
 {
+       if (!client) return;
+
 #ifdef WITH_DYNAMIC_CLIENTS
        if (client->dynamic == 2) {
                time_t now;