Avoid appearance of if if else ambiguity

This commit is contained in:
Viktor Dukhovni
2014-07-22 18:02:26 -04:00
committed by Viktor Dukhovni
parent d75e74b2d7
commit 6501ba7e95

View File

@@ -1130,11 +1130,12 @@ get_princ_kt(krb5_context context,
}
if (ret != 0 || (ret = krb5_kt_end_seq_get(context, kt, &cursor)) != 0)
krb5_err(context, 1, ret, "get_princ_kt");
if (!*principal)
if (!*principal) {
if (name)
parse_name_realm(context, name, 0, NULL, principal);
else
krb5_err(context, 1, KRB5_CC_NOTFOUND, "get_princ_kt");
}
krb5_free_principal(context, tmp);
free(def_realm);