[HEIMDAL-646] malloc(0) checks for AIX

This commit is contained in:
Love Hornquist Astrand
2009-10-11 18:04:43 -07:00
parent 57faf165a0
commit a4881ea0d6

View File

@@ -161,7 +161,7 @@ _gss_ntlm_accept_sec_context
}
output_token->value = malloc(out.length);
if (output_token->value == NULL) {
if (output_token->value == NULL && out.length != 0) {
OM_uint32 junk;
_gss_ntlm_delete_sec_context(&junk, context_handle, NULL);
*minor_status = ENOMEM;