Message ID | CAASiZWagFdx+5Nfq383zgJkMcL_T_hqVeWTgPx2ej8J6U=DfLQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
Series | None | expand |
On Mon, 2021-03-22 at 15:55 +0100, Benjamin Aschenbrenner wrote: > > @@ -282,6 +282,9 @@ static int handle_ftm_req_send(struct > nl80211_state *state, struct nl_msg *msg, > const char *file; > int err; > > + if (argc < 1) > + return HANDLER_RET_USAGE; Something along the line replaced tabs by 4 spaces, so the patches don't apply. Please resend. Thanks, johannes
Sorry I missed that. Will resend as v2. Kind regards, Benjamin
diff --git a/measurements.c b/measurements.c index 635d942..80fe785 100644 --- a/measurements.c +++ b/measurements.c @@ -282,6 +282,9 @@ static int handle_ftm_req_send(struct nl80211_state *state, struct nl_msg *msg, const char *file; int err; + if (argc < 1) + return HANDLER_RET_USAGE; + file = argv[0]; argc--;