mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
BUG/MAJOR: server: Segfault after parsing server state file.
This patch makes the server state file parser ignore servers wich are not present in the configuration file.
This commit is contained in:
parent
5df119008a
commit
0bedb8ac90
@ -3479,10 +3479,12 @@ void apply_server_state(void)
|
||||
else if (diff & PR_FBM_MISMATCH_ID) {
|
||||
Warning("In backend '%s' (id: '%d'): server ID mismatch: from server state file: '%s', from running config %d\n", bk->id, bk->uuid, params[2], srv->puid);
|
||||
send_log(bk, LOG_NOTICE, "In backend '%s' (id: %d): server ID mismatch: from server state file: '%s', from running config %d\n", bk->id, bk->uuid, params[2], srv->puid);
|
||||
continue;
|
||||
}
|
||||
else if (diff & PR_FBM_MISMATCH_NAME) {
|
||||
Warning("In backend '%s' (id: %d): server name mismatch: from server state file: '%s', from running config '%s'\n", bk->id, bk->uuid, params[3], srv->id);
|
||||
send_log(bk, LOG_NOTICE, "In backend '%s' (id: %d): server name mismatch: from server state file: '%s', from running config '%s'\n", bk->id, bk->uuid, params[3], srv->id);
|
||||
continue;
|
||||
}
|
||||
|
||||
/* now we can proceed with server's state update */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user