Remove a couple of NULL deferences in lib/krb5/get_cred.c.

This commit is contained in:
Roland C. Dowdeswell
2012-12-03 14:10:12 +08:00
parent f97f15a86c
commit 27dd8621fb

View File

@@ -1487,8 +1487,9 @@ next_rule:
tgts = NULL;
ret = _krb5_get_cred_kdc_any(context, flags, ccache,
try_creds, opt->self, opt->ticket,
out_creds, &tgts);
try_creds, opt ? opt->self : 0,
opt ? opt->ticket : 0, out_creds,
&tgts);
for(i = 0; tgts && tgts[i]; i++) {
krb5_cc_store_cred(context, ccache, tgts[i]);
krb5_free_creds(context, tgts[i]);