Skip to content

Commit

Permalink
Proper fallthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
ellert committed Feb 6, 2017
1 parent b6ac123 commit 376999f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/XrdSecpwd/XrdSecProtocolpwd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ if (hs->Step == kXPS_init)
SessionSt.options = kOptsClntTty;
}
// case kXPS_puk:
if (hs->Step == kXPS_puk)
if ((hs->Step == kXPS_init) || (hs->Step == kXPS_puk))
{
// After auto-reg request, server puk have been saved in ParseClientInput:
// we need to start a full normal login now
Expand Down Expand Up @@ -1045,8 +1045,6 @@ if (hs->Step == kXPS_puk)
}
}
// case kXPS_signedrtag: // (after kXRC_verifysrv)
if (hs->Step == kXPS_signedrtag)
{
//
// Add the username
if (hs->User.length()) {
Expand Down Expand Up @@ -1081,7 +1079,6 @@ if (hs->Step == kXPS_signedrtag)
SessionSt.options |= kOptsChngPwd;
//
nextstep = kXPC_normal;
}
break;

case kXPS_credsreq:
Expand Down

0 comments on commit 376999f

Please sign in to comment.