if not trailer set, init EC to 0

This commit is contained in:
Love Hornquist Astrand
2009-08-26 21:40:07 -07:00
parent ba4909eba5
commit 559103b218

View File

@@ -608,8 +608,13 @@ _gssapi_wrap_cfx_iov(OM_uint32 *minor_status,
goto failure; goto failure;
} }
token->EC[0] = (trailer->buffer.length >> 8) & 0xFF; if (trailer) {
token->EC[1] = (trailer->buffer.length >> 0) & 0xFF; token->EC[0] = (trailer->buffer.length >> 8) & 0xFF;
token->EC[1] = (trailer->buffer.length >> 0) & 0xFF;
} else {
token->EC[0] = 0;
token->EC[1] = 0;
}
} }
if (conf_state != NULL) if (conf_state != NULL)