]> granicus.if.org Git - apache/commitdiff
Fix segfault
authorStefan Fritsch <sf@apache.org>
Tue, 6 Jul 2010 20:11:30 +0000 (20:11 +0000)
committerStefan Fritsch <sf@apache.org>
Tue, 6 Jul 2010 20:11:30 +0000 (20:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@961004 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_auth_form.c

index 073c7d485202bd80993869f574eaa8b71980fcca..a5bd2a3bc0fd7482f4ae6ffd7968ad53ccb76601 100644 (file)
@@ -671,7 +671,8 @@ static int get_form_auth(request_rec * r,
      * save away the username, password, mimetype and method, so that they
      * are available should the auth need to be run again.
      */
-    set_notes_auth(r, *sent_user, *sent_pw, *sent_method, *sent_mimetype);
+    set_notes_auth(r, *sent_user, *sent_pw, sent_method ? *sent_method : NULL,
+                  sent_mimetype ? *sent_mimetype : NULL);
 
     return OK;
 }