Add missing error check in krb5_check_transited

Reported by David Mulder, PR 195.
This commit is contained in:
Viktor Dukhovni
2016-08-09 20:52:58 -04:00
parent 4b4036c9a6
commit 99dfbda161

View File

@@ -612,6 +612,8 @@ krb5_check_transited(krb5_context context,
ret = _krb5_find_capath(context, client_realm, client_realm, server_realm,
TRUE, &capath, &num_capath);
if (ret)
return ret;
for (i = 0; i < num_realms; i++) {
for (j = 0; j < num_capath; ++j) {