From: Ilia Alshanetsky Date: Wed, 26 Aug 2009 15:29:06 +0000 (+0000) Subject: Fixed variable clobbering X-Git-Tag: php-5.4.0alpha1~191^2~2751 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29b1bc623895f63eb8684e0055f2afa9f7e1992e;p=php Fixed variable clobbering --- diff --git a/sapi/cgi/fastcgi.c b/sapi/cgi/fastcgi.c index 4044327636..03ca4b2507 100644 --- a/sapi/cgi/fastcgi.c +++ b/sapi/cgi/fastcgi.c @@ -397,21 +397,21 @@ int fcgi_listen(const char *path, int backlog) } } else { #ifdef _WIN32 - SECURITY_DESCRIPTOR sd; - SECURITY_ATTRIBUTES sa; - PACL acl; + SECURITY_DESCRIPTOR sd; + SECURITY_ATTRIBUTES saw; + PACL acl; HANDLE namedPipe; - memset(&sa, 0, sizeof(sa)); - sa.nLength = sizeof(sa); + memset(&sa, 0, sizeof(saw)); + sa.nLength = sizeof(saw); sa.bInheritHandle = FALSE; - acl = prepare_named_pipe_acl(&sd, &sa); + acl = prepare_named_pipe_acl(&sd, &saw); namedPipe = CreateNamedPipe(path, PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED, PIPE_TYPE_BYTE | PIPE_WAIT | PIPE_READMODE_BYTE, PIPE_UNLIMITED_INSTANCES, - 8192, 8192, 0, &sa); + 8192, 8192, 0, &saw); if (namedPipe == INVALID_HANDLE_VALUE) { return -1; }