diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-04-04 23:41:35 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-04-04 23:41:35 +0000 |
commit | c321b9f7046e96aa269635d9deafa357a118e88c (patch) | |
tree | 7f89ef27f77718bce8d69afa9e9fd6daf82d9d56 /lib/http_ntlm.c | |
parent | 7e74349b86386f0fb33e7323f70b10300d64eaf3 (diff) |
Fixes some more out of memory handling bugs.
Diffstat (limited to 'lib/http_ntlm.c')
-rw-r--r-- | lib/http_ntlm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index cc307f72d..b4df726b5 100644 --- a/lib/http_ntlm.c +++ b/lib/http_ntlm.c @@ -421,6 +421,10 @@ static void mk_nt_hash(struct SessionHandle *data, { size_t len = strlen(password); unsigned char *pw = malloc(len*2); + if (!pw) + /* No way to report this error; just rely on future malloc failures + to be caught */ + return; utf8_to_unicode_le(pw, password, len); |