Fixes some more out of memory handling bugs.

This commit is contained in:
Dan Fandrich
2007-04-04 23:41:35 +00:00
parent 7e74349b86
commit c321b9f704
4 changed files with 9 additions and 1 deletions

View File

@@ -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);