]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
on the odd chance that fmt may be NULL...
authorAlan T. DeKok <aland@freeradius.org>
Sun, 31 May 2015 22:27:37 +0000 (18:27 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 31 May 2015 22:27:37 +0000 (18:27 -0400)
src/modules/rlm_sqlippool/rlm_sqlippool.c

index d24aeedb8b3c0ebb15fbcef6d20439bb69744817..d7e1c52f9b34513ad2976359faa589c93b9a1b50 100644 (file)
@@ -302,7 +302,7 @@ static int sqlippool_command(char const * fmt, rlm_sql_handle_t * handle, rlm_sq
        /*
         *      If we don't have a command, do nothing.
         */
-       if (!*fmt) return 0;
+       if (!fmt || !*fmt) return 0;
 
        /*
         *      @todo this needs to die (should just be done in xlat expansion)