From: Alan T. DeKok Date: Sun, 31 May 2015 22:27:37 +0000 (-0400) Subject: on the odd chance that fmt may be NULL... X-Git-Tag: release_3_0_9~305 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfb0cad9199385262886903d886b91fb3cfc1d98;p=thirdparty%2Ffreeradius-server.git on the odd chance that fmt may be NULL... --- diff --git a/src/modules/rlm_sqlippool/rlm_sqlippool.c b/src/modules/rlm_sqlippool/rlm_sqlippool.c index d24aeedb8b3..d7e1c52f9b3 100644 --- a/src/modules/rlm_sqlippool/rlm_sqlippool.c +++ b/src/modules/rlm_sqlippool/rlm_sqlippool.c @@ -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)