From: Christophe Jaillet Date: Fri, 11 Mar 2016 21:16:48 +0000 (+0000) Subject: Silent a smatch warning: X-Git-Tag: 2.5.0-alpha~1912 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9fbfe2fc9060a9c464e56499ae68693d01210801;p=thirdparty%2Fapache%2Fhttpd.git Silent a smatch warning: mod_auth_form.c:626 get_form_auth() warn: variable dereferenced before check 'sent_user' (see line 616) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1734635 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_auth_form.c b/modules/aaa/mod_auth_form.c index e254710b17d..7389b3c7f71 100644 --- a/modules/aaa/mod_auth_form.c +++ b/modules/aaa/mod_auth_form.c @@ -613,7 +613,7 @@ static int get_form_auth(request_rec * r, /* have we isolated the user and pw before? */ get_notes_auth(r, sent_user, sent_pw, sent_method, sent_mimetype); - if (*sent_user && *sent_pw) { + if (sent_user && *sent_user && sent_pw && *sent_pw) { return OK; }