return success if we did not find any matching keytab entries,
otherwise we will crash upon accessing ticket->enc_part2.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22974
dc483132-0cff-0310-8789-
dd5450dbe970
krb5_error_code code;
krb5_kt_cursor cursor;
- retval = krb5_kt_start_seq_get(context, keytab, &cursor);
- if (retval != 0)
+ code = krb5_kt_start_seq_get(context, keytab, &cursor);
+ if (code != 0) {
+ retval = code;
goto map_error;
+ }
while ((code = krb5_kt_next_entry(context, keytab,
&ktent, &cursor)) == 0) {