summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Wasserman <kevin.wasserman@painless-security.com>2012-05-06 17:50:20 -0400
committerSam Hartman <hartmans@mit.edu>2012-07-16 09:32:52 -0400
commitfbe77b2c7d4340097690cbed7b48fd9888feacd4 (patch)
tree383f1e9c455b27350687069876573bc591825e2f
parentdcd9202f058830eacbbdfd0dd26bd82d8101e8fd (diff)
downloadkrb5-fbe77b2c7d4340097690cbed7b48fd9888feacd4.tar.gz
krb5-fbe77b2c7d4340097690cbed7b48fd9888feacd4.tar.xz
krb5-fbe77b2c7d4340097690cbed7b48fd9888feacd4.zip
krb5_stdccv3_get_principal error handling fixup
Don't treat an error returned by krb5_parse_name as a cc-internal error. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7214 (new) tags: pullup
-rw-r--r--src/lib/krb5/ccache/ccapi/stdcc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/krb5/ccache/ccapi/stdcc.c b/src/lib/krb5/ccache/ccapi/stdcc.c
index d361bdeec3..fa6a1d4113 100644
--- a/src/lib/krb5/ccache/ccapi/stdcc.c
+++ b/src/lib/krb5/ccache/ccapi/stdcc.c
@@ -764,11 +764,13 @@ krb5_stdccv3_get_principal (krb5_context context,
if (!err) {
err = krb5_parse_name (context, name->data, princ);
+ } else {
+ err = cc_err_xlate (err);
}
if (name) { cc_string_release (name); }
- return cc_err_xlate (err);
+ return err;
}
/*