commit 6f6f771f7ca7492ff71084ef8c9ccb3eba12cbcd from: Tracey Emery date: Thu Feb 13 23:28:37 2020 UTC set gw_err in correct code path commit - 88759617e99fdc717ac8565656abb91c0e029bf8 commit + 6f6f771f7ca7492ff71084ef8c9ccb3eba12cbcd blob - a5afae06bbc2f51192026232697eebca74d595cf blob + e370e12fdb586d62dc52329a892402b253d5f010 --- gotweb/gotweb.c +++ gotweb/gotweb.c @@ -1647,11 +1647,11 @@ gw_parse_querystring(struct gw_trans *gw_trans) gw_trans->action = i; break; } - } - if (gw_trans->action == -1) { - gw_trans->action = GW_ERR; - gw_trans->error = got_error_from_errno("bad action"); } + } + if (gw_trans->action == -1) { + gw_trans->action = GW_ERR; + gw_trans->error = got_error_from_errno("bad action"); } if ((p = gw_trans->gw_req->fieldmap[KEY_COMMIT_ID])) {