projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2497c42
)
spnego_sspi: fix memory leak in case *outlen is zero (#970)
author
Miroslav Franc
<mfranc@gmx.com>
Fri, 19 Aug 2016 12:46:07 +0000
(14:46 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 19 Aug 2016 12:46:07 +0000
(14:46 +0200)
lib/vauth/spnego_sspi.c
patch
|
blob
|
history
diff --git
a/lib/vauth/spnego_sspi.c
b/lib/vauth/spnego_sspi.c
index 1222a654df8e15a0d5ac41107fba313497b913d9..f83c44632e2267d8a82ff81c34af5d46feec3e56 100644
(file)
--- a/
lib/vauth/spnego_sspi.c
+++ b/
lib/vauth/spnego_sspi.c
@@
-265,8
+265,10
@@
CURLcode Curl_auth_create_spnego_message(struct Curl_easy *data,
if(result)
return result;
- if(!*outptr || !*outlen)
+ if(!*outptr || !*outlen) {
+ free(*outptr);
return CURLE_REMOTE_ACCESS_DENIED;
+ }
return CURLE_OK;
}