projects
/
krb5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pull up r24020 from trunk
[krb5.git]
/
src
/
lib
/
krb5
/
krb
/
get_in_tkt.c
diff --git
a/src/lib/krb5/krb/get_in_tkt.c
b/src/lib/krb5/krb/get_in_tkt.c
index b1b837d06cd5f9eabdcd783b08fdf15cc6d7c8b4..41059af710ff81f54b664279ff35b75febf250db 100644
(file)
--- a/
src/lib/krb5/krb/get_in_tkt.c
+++ b/
src/lib/krb5/krb/get_in_tkt.c
@@
-1489,14
+1489,15
@@
krb5_init_creds_init(krb5_context context,
krb5_princ_type(context, ctx->request->client) = KRB5_NT_WELLKNOWN;
}
code = restart_init_creds_loop(context, ctx, NULL);
krb5_princ_type(context, ctx->request->client) = KRB5_NT_WELLKNOWN;
}
code = restart_init_creds_loop(context, ctx, NULL);
+ if (code)
+ goto cleanup;
*pctx = ctx;
*pctx = ctx;
+ ctx = NULL;
cleanup:
cleanup:
- if (code != 0)
- krb5_init_creds_free(context, ctx);
- if (str != NULL)
- free(str);
+ krb5_init_creds_free(context, ctx);
+ free(str);
return code;
}
return code;
}