~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initialise 'psa' to NULL on every code path in the Pageant client
[sgt/putty]
/
windows
/
winpgntc.c
diff --git
a/windows/winpgntc.c
b/windows/winpgntc.c
index
de2b700
..
4074a16
100644
(file)
--- a/
windows/winpgntc.c
+++ b/
windows/winpgntc.c
@@
-173,6
+173,7
@@
int agent_query(void *in, int inlen, void **out, int *outlen,
return 1; /* *out == NULL, so failure */
mapname = dupprintf("PageantRequest%08x", (unsigned)GetCurrentThreadId());
return 1; /* *out == NULL, so failure */
mapname = dupprintf("PageantRequest%08x", (unsigned)GetCurrentThreadId());
+ psa = NULL;
#ifndef NO_SECURITY
if (advapi_initialised || init_advapi()) {
/*
#ifndef NO_SECURITY
if (advapi_initialised || init_advapi()) {
/*
@@
-186,7
+187,6
@@
int agent_query(void *in, int inlen, void **out, int *outlen,
*/
usersid = get_user_sid();
*/
usersid = get_user_sid();
- psa = NULL;
if (usersid) {
psd = (PSECURITY_DESCRIPTOR)
LocalAlloc(LPTR, SECURITY_DESCRIPTOR_MIN_LENGTH);
if (usersid) {
psd = (PSECURITY_DESCRIPTOR)
LocalAlloc(LPTR, SECURITY_DESCRIPTOR_MIN_LENGTH);