projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26e94a7
)
Patch from Luke: fix error return of krb5_gss_use_kdc_context
author
Greg Hudson
<ghudson@mit.edu>
Wed, 21 Jan 2009 18:23:58 +0000
(18:23 +0000)
committer
Greg Hudson
<ghudson@mit.edu>
Wed, 21 Jan 2009 18:23:58 +0000
(18:23 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21768
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/gssapi/krb5/krb5_gss_glue.c
patch
|
blob
|
history
diff --git
a/src/lib/gssapi/krb5/krb5_gss_glue.c
b/src/lib/gssapi/krb5/krb5_gss_glue.c
index 5b7cbdf21c0d9eda0553915aa2e8b8af6847a22b..cd3459cd72f79c680d2f6ae53dfbca07e759fc7e 100644
(file)
--- a/
src/lib/gssapi/krb5/krb5_gss_glue.c
+++ b/
src/lib/gssapi/krb5/krb5_gss_glue.c
@@
-280,6
+280,7
@@
krb5_gss_use_kdc_context(void)
OM_uint32 major_status;
OM_uint32 minor_status;
gss_buffer_desc req_buffer;
+ krb5_error_code ret;
req_buffer.length = 0;
req_buffer.value = NULL;
@@
-289,7
+290,15
@@
krb5_gss_use_kdc_context(void)
(const gss_OID)&req_oid,
&req_buffer);
- return major_status;
+ if (major_status != GSS_S_COMPLETE) {
+ if (minor_status != 0)
+ ret = (krb5_error_code)minor_status;
+ else
+ ret = KRB5KRB_ERR_GENERIC;
+ } else
+ ret = 0;
+
+ return ret;
}
/*