Commit 6f6f771f7ca7492ff71084ef8c9ccb3eba12cbcd

Tracey Emery 2020-02-13T23:28:37

set gw_err in correct code path

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index a5afae0..e370e12 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -1648,10 +1648,10 @@ gw_parse_querystring(struct gw_trans *gw_trans)
 					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])) {