Skip to content

Commit

Permalink
Add missing break
Browse files Browse the repository at this point in the history
Closes Coverity #982088
  • Loading branch information
alandekok committed Feb 17, 2013
1 parent f3e46e6 commit d21249c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/modules/rlm_krb5/rlm_krb5.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ static rlm_rcode_t krb5_auth(void *instance, REQUEST *request)
RDEBUG("Provided password was incorrect: %s",
error_message(ret));
rcode = RLM_MODULE_REJECT;

break;

case KRB5KDC_ERR_KEY_EXP:
Expand All @@ -364,19 +363,18 @@ static rlm_rcode_t krb5_auth(void *instance, REQUEST *request)
RDEBUG("Account has been locked out: %s",
error_message(ret));
rcode = RLM_MODULE_USERLOCK;

break;

case KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN:
RDEBUG("User not found: %s", error_message(ret));
rcode = RLM_MODULE_NOTFOUND;
break;

default:
radlog(L_ERR, "rlm_krb5 (%s): Failed getting/verifying "
"credentials: %s", inst->xlat_name,
error_message(ret));
rcode = RLM_MODULE_FAIL;

break;
}

Expand Down

0 comments on commit d21249c

Please sign in to comment.