From: Sascha Schumann Date: Fri, 27 Oct 2000 10:28:57 +0000 (+0000) Subject: Initialize auth_(user|password) to NULL, if data was not suitable. X-Git-Tag: php-4.0.4RC3~501 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b02d88b8e7a80fea08bc6d78af88be414072bff;p=php Initialize auth_(user|password) to NULL, if data was not suitable. --- diff --git a/main/main.c b/main/main.c index d06b5731ca..e706b7ca2a 100644 --- a/main/main.c +++ b/main/main.c @@ -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; }