diff options
| author | Tom Yu <tlyu@mit.edu> | 2006-12-22 01:19:55 +0000 |
|---|---|---|
| committer | Tom Yu <tlyu@mit.edu> | 2006-12-22 01:19:55 +0000 |
| commit | f34e68770ae0e1ae75a990fb220b748110c91f84 (patch) | |
| tree | 72030a2cd389b5f777e97d669bdeae50ed2a34e0 /src/lib | |
| parent | fea0fcd723791636645b6fbad4f55f49cd2806c6 (diff) | |
* src/lib/krb5/krb/get_in_tkt.c (krb5_get_init_creds): Fix
ordering bug in previous patch.
ticket: 5123
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19007 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/krb5/krb/get_in_tkt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index 8470724ea..12476d3fa 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -1134,13 +1134,14 @@ krb5_get_init_creds(krb5_context context, /* No preauth supplied, so can't query the plug-ins. */ ret = KRB5KRB_ERR_GENERIC; } - krb5_free_error(context, err_reply); - err_reply = NULL; if (ret) { /* couldn't come up with anything better */ ret = err_reply->error + ERROR_TABLE_BASE_krb5; - goto cleanup; } + krb5_free_error(context, err_reply); + err_reply = NULL; + if (ret) + goto cleanup; } if (encoded_previous_request != NULL) { |
