X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fauth.c;h=af571a48f8ab827f72146170b85cbfba81499be2;hb=c345df49943fc6991c48a3e8b087d4a0046ac42a;hp=2e58a710a0d053d5d5d249f26d90d69ee41c3b4c;hpb=ff0768551267de3dad2f807ddc54aa487088f6ac;p=citadel.git diff --git a/webcit/auth.c b/webcit/auth.c index 2e58a710a..af571a48f 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -41,9 +41,9 @@ void display_login(char *mesg) output_headers(1, 1, 2, 0, 0, 0); wprintf("
\n"); - if (mesg != NULL) if (!IsEmptyStr(mesg)) { - stresc(buf, SIZ, mesg, 0, 0); - svprintf(HKEY("MESG"), WCS_STRING, "%s", buf); + if ((mesg != NULL) && (!IsEmptyStr(mesg))) { + stresc(buf, SIZ, mesg, 0, 0); + svprintf(HKEY("MESG"), WCS_STRING, "%s", buf); } svprintf(HKEY("LOGIN_INSTRUCTIONS"), WCS_STRING, @@ -116,9 +116,9 @@ void display_openid_login(char *mesg) output_headers(1, 1, 2, 0, 0, 0); wprintf("
\n"); - if (mesg != NULL) if (!IsEmptyStr(mesg)) { - stresc(buf, SIZ, mesg, 0, 0); - svprintf(HKEY("MESG"), WCS_STRING, "%s", buf); + if ((mesg != NULL) && (!IsEmptyStr(mesg))) { + stresc(buf, SIZ, mesg, 0, 0); + svprintf(HKEY("MESG"), WCS_STRING, "%s", buf); } svprintf(HKEY("LOGIN_INSTRUCTIONS"), WCS_STRING,