Fix NTLM authentication memory leak on SSPI enabled Windows builds

This commit is contained in:
Yang Tse
2009-03-05 01:23:14 +00:00
parent b98e0aa09b
commit 94bb7fe5cb
3 changed files with 7 additions and 4 deletions

View File

@@ -6,6 +6,10 @@
Changelog Changelog
Yang Tse (5 Mar 2009)
- Fixed NTLM authentication memory leak on SSPI enabled Windows builds. This
issue was noticed by Chris Deidun.
Daniel Fandrich (4 Mar 2009) Daniel Fandrich (4 Mar 2009)
- Fixed a problem with m4 quoting in the OpenSSL configure check reported - Fixed a problem with m4 quoting in the OpenSSL configure check reported
by Daniel Johnson. by Daniel Johnson.

View File

@@ -14,7 +14,7 @@ This release includes the following changes:
This release includes the following bugfixes: This release includes the following bugfixes:
o o NTLM authentication memory leak on SSPI enabled Windows builds
This release includes the following known bugs: This release includes the following known bugs:
@@ -23,6 +23,6 @@ This release includes the following known bugs:
This release would not have looked like this without help, code, reports and This release would not have looked like this without help, code, reports and
advice from friends like these: advice from friends like these:
David James David James, Chris Deidun
Thanks! (and sorry if I forgot to mention someone) Thanks! (and sorry if I forgot to mention someone)

View File

@@ -303,9 +303,8 @@ CURLntlm Curl_input_ntlm(struct connectdata *conn,
fprintf(stderr, "\n****\n"); fprintf(stderr, "\n****\n");
fprintf(stderr, "**** Header %s\n ", header); fprintf(stderr, "**** Header %s\n ", header);
}); });
free(buffer);
#endif #endif
free(buffer);
} }
else { else {
if(ntlm->state >= NTLMSTATE_TYPE1) if(ntlm->state >= NTLMSTATE_TYPE1)