lib/krb5: krcc_remove_cred remove dead code
At the completion of the while loop the value of 'ret' cannot be zero. The expected value is KRB5_CC_END. Any other value is an error to return to the caller. If 'ret' is KRB5_CC_END then return krcc_end_get() result(). Change-Id: Ic2afb5a754e03d521c10a259c53fc70b86b4a132
This commit is contained in:

committed by
Luke Howard

parent
6561afff3a
commit
49dacab0b8
@@ -1419,10 +1419,8 @@ krcc_remove_cred(krb5_context context, krb5_ccache id,
|
||||
}
|
||||
|
||||
ret2 = krcc_end_get(context, id, &cursor);
|
||||
if (ret == 0)
|
||||
if (ret == KRB5_CC_END)
|
||||
ret = ret2;
|
||||
else if (ret == KRB5_CC_END)
|
||||
ret = 0;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user