Skip to content

Commit

Permalink
Removed unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
ysyrota authored and AaronAtDuo committed Oct 22, 2024
1 parent 13769e0 commit fcd5d5a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/duo.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,7 @@ _duo_preauth(struct duo_ctx *ctx, const char *username,
JSON_Object *response;
_JSON_FIND_OBJECT(response, json_obj, "response", json);
_JSON_FIND_STRING(p, response, "result", json);
if (p == NULL) {
_duo_seterr(ctx, "JSON invalid 'result': %s", p);
ret = DUO_SERVER_ERROR;
} else if (strcasecmp(p, "auth") != 0) {
if (strcasecmp(p, "auth") != 0) {
char *output;
_JSON_FIND_STRING(output, response, "status", json);
if (strcasecmp(p, "allow") == 0) {
Expand Down

0 comments on commit fcd5d5a

Please sign in to comment.