]> granicus.if.org Git - php/commitdiff
initialize SG(request_info).auth_digest to NULL and prevent segfaults
authorAntony Dovgal <tony2001@php.net>
Tue, 18 Oct 2005 23:51:36 +0000 (23:51 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 18 Oct 2005 23:51:36 +0000 (23:51 +0000)
sapi/apache/mod_php5.c

index e2fcd5ede554ea37518a8955cdf3f651f2a35b5e..4ac60b2742dfe2be95e2415aedc0028f90f0eba3 100644 (file)
@@ -496,6 +496,7 @@ static void init_request_info(TSRMLS_D)
 
        SG(request_info).auth_user = NULL;
        SG(request_info).auth_password = NULL;
+       SG(request_info).auth_digest = NULL;
 
        if (authorization && (!PG(safe_mode) || (PG(safe_mode) && !auth_type(r)))) {
                char *p = getword(r->pool, &authorization, ' ');