lib/krb5: krcache add_unique_keyring dead code removal
After the for loop 'key' cannot have the value -1. The loop must execute at least once resulting either in the function returning to the caller or the value of 'key' getting set to a value other than -1. Change-Id: Idaf65e3cf3d22a27828ad0dd04650a4f54ba94fc
This commit is contained in:

committed by
Luke Howard

parent
49dacab0b8
commit
17e8216927
@@ -766,9 +766,6 @@ add_unique_keyring(krb5_context context,
|
||||
}
|
||||
}
|
||||
|
||||
if (key == -1)
|
||||
return KRB5_CC_BADNAME;
|
||||
|
||||
*psubsidiary = strdup(uniquename);
|
||||
if (*psubsidiary == NULL)
|
||||
return krb5_enomem(context);
|
||||
|
Reference in New Issue
Block a user