]> granicus.if.org Git - apache/commitdiff
Silent a smatch warning:
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 11 Mar 2016 21:16:48 +0000 (21:16 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 11 Mar 2016 21:16:48 +0000 (21:16 +0000)
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

modules/aaa/mod_auth_form.c

index e254710b17d023cb1a78aded251206e052d79f74..7389b3c7f71ace04e77e83134acf9a679659860c 100644 (file)
@@ -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;
     }