Skip to content

Commit

Permalink
Fixed variable clobbering
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Alshanetsky committed Aug 26, 2009
1 parent a56bb8e commit 56510b5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sapi/cgi/fastcgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 56510b5

Please sign in to comment.