diff options
Diffstat (limited to 'src/providers/krb5')
-rw-r--r-- | src/providers/krb5/krb5_child.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index 9480d2b3..4d12b90a 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -1451,12 +1451,18 @@ static errno_t tgt_req_child(struct krb5_req *kr) ret = sss_authtok_get_password(kr->pd->authtok, &password, NULL); switch (ret) { - if (ret == EACCES) { + case EOK: + break; + + case EACCES: DEBUG(SSSDBG_OP_FAILURE, ("Invalid authtok type\n")); return ERR_INVALID_CRED_TYPE; - } - DEBUG(SSSDBG_OP_FAILURE, ("No credentials available\n")); - return ERR_NO_CREDS; + break; + + default: + DEBUG(SSSDBG_OP_FAILURE, ("No credentials available\n")); + return ERR_NO_CREDS; + break; } kerr = get_and_save_tgt(kr, password); |