handle minor_status more consistently

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10533 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-08-23 04:35:55 +00:00
parent fe6efabb74
commit e129105771
12 changed files with 66 additions and 42 deletions

View File

@@ -198,11 +198,12 @@ gss_accept_sec_context
tmp);
}
ret = gssapi_krb5_decapsulate (input_token_buffer,
ret = gssapi_krb5_decapsulate (minor_status,
input_token_buffer,
&indata,
"\x01\x00");
if (ret) {
kret = 0;
kret = *minor_status;
goto failure;
}
@@ -355,13 +356,14 @@ end_fwd:
gssapi_krb5_set_error_string ();
goto failure;
}
ret = gssapi_krb5_encapsulate (&outbuf,
ret = gssapi_krb5_encapsulate (minor_status,
&outbuf,
output_token,
"\x02\x00");
krb5_data_free (&outbuf);
if (ret) {
kret = 0;
goto failure;
kret = *minor_status;
goto failure;
}
} else {
output_token->length = 0;