nla->negoToken.cbBuffer); /* OCTET STRING */
if (length != nego_tokens_length)
+ {
+ Stream_Free(s, TRUE);
return FALSE;
+ }
}
/* [2] authInfo (OCTET STRING) */
{
if (ber_write_sequence_octet_string(s, 2, nla->authInfo.pvBuffer,
nla->authInfo.cbBuffer) != auth_info_length)
+ {
+ Stream_Free(s, TRUE);
return FALSE;
+ }
}
/* [3] pubKeyAuth (OCTET STRING) */
{
if (ber_write_sequence_octet_string(s, 3, nla->pubKeyAuth.pvBuffer,
nla->pubKeyAuth.cbBuffer) != pub_key_auth_length)
+ {
+ Stream_Free(s, TRUE);
return FALSE;
+ }
}
/* [4] errorCode (INTEGER) */
{
if (ber_write_sequence_octet_string(s, 5, nla->ClientNonce.pvBuffer,
nla->ClientNonce.cbBuffer) != client_nonce_length)
+ {
+ Stream_Free(s, TRUE);
return FALSE;
+ }
}
Stream_SealLength(s);