]> granicus.if.org Git - php/commitdiff
Initialize auth_(user|password) to NULL, if data was not suitable.
authorSascha Schumann <sas@php.net>
Fri, 27 Oct 2000 10:28:57 +0000 (10:28 +0000)
committerSascha Schumann <sas@php.net>
Fri, 27 Oct 2000 10:28:57 +0000 (10:28 +0000)
main/main.c

index d06b5731cad17c4ec668018e2af27eda375cd89e..e706b7ca2a2078e637db99d36c208aebe5fe68f8 100644 (file)
@@ -1236,6 +1236,10 @@ PHPAPI int php_handle_auth_data(const char *auth SLS_DC)
                        }
                }
        }
+
+       if (ret == -1)
+               SG(request_info).auth_user = SG(request_info).auth_password = NULL;
+
        return ret;
 }