mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
BUG/MINOR: stats admin: "Unexpected result" was displayed unconditionally
I introduced a regression in commit 19979e176e while reworking the admin actions results. "Unexpected result" was displayed even if the action was applied due to a misplaced initialization. This small patch should fix it. Note: no need to backport.
This commit is contained in:
parent
a0564f3541
commit
20a804ac6d
@ -7150,13 +7150,13 @@ int stats_check_uri(struct stream_interface *si, struct http_txn *txn, struct pr
|
||||
if (memcmp(h, ";st=", 4) == 0) {
|
||||
int i;
|
||||
h += 4;
|
||||
si->applet.ctx.stats.st_code = STAT_STATUS_UNKN;
|
||||
for (i = STAT_STATUS_INIT + 1; i < STAT_STATUS_SIZE; i++) {
|
||||
if (strncmp(stat_status_codes[i], h, 4) == 0) {
|
||||
si->applet.ctx.stats.st_code = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
si->applet.ctx.stats.st_code = STAT_STATUS_UNKN;
|
||||
break;
|
||||
}
|
||||
h++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user