Aurelien DARRAGON
2560ab892f
BUG/MINOR: cfgparse/peers: fix inconsistent check for missing peer server
...
In the "peers" section parser, right after parse_server() is called, we
used to check whether the curpeers->peers_fe->srv pointer was set or not
to know if parse_server() successfuly added a server to the peers proxy,
server that we can then associate to the new peer.
However the check is wrong, as curpeers->peers_fe->srv points to the
last added server, if a server was successfully added before the
failing one, we cannot detect that the last parse_server() didn't
add a server. This is known to cause bug with bad "peer"/"server"
statements.
To fix the issue, we save a pointer on the last known
curpeers->peers_fe->srv before parse_server() is called, and we then
compare the save with the pointer after parse_server(), if the value
didn't change, then parse_server() didn't add a server. This makes
the check consistent in all situations.
It should be backported to all stable versions.
2025-03-06 22:05:24 +01:00
..
2024-11-18 15:15:54 +01:00
2024-11-22 09:42:49 +01:00
2025-02-20 10:00:32 +01:00
2024-10-18 14:30:24 +02:00
2025-02-06 16:55:37 +01:00
2025-03-03 04:05:47 +01:00
2024-10-18 18:28:39 +02:00
2024-12-17 17:42:11 +01:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2025-01-20 17:53:55 +01:00
2025-02-26 13:00:18 +01:00
2025-03-06 09:30:18 +01:00
2025-01-30 18:12:53 +01:00
2025-02-17 18:26:37 +01:00
2025-01-02 14:31:07 +01:00
2025-03-06 22:05:24 +01:00
2024-09-30 11:36:39 +02:00
2025-01-28 12:49:41 +01:00
2025-01-29 17:55:18 +01:00
2025-02-17 15:31:07 +01:00
2025-02-21 11:22:35 +01:00
2025-01-02 14:31:07 +01:00
2025-02-26 13:00:18 +01:00
2025-03-03 12:43:32 +01:00
2024-11-18 18:50:02 +01:00
2024-07-09 16:46:38 +02:00
2024-08-21 17:36:58 +02:00
2024-11-18 19:07:05 +01:00
2025-01-07 16:42:38 +01:00
2025-02-26 13:00:18 +01:00
2025-02-26 13:00:18 +01:00
2025-02-26 13:00:18 +01:00
2024-05-24 12:07:18 +02:00
2024-05-24 12:07:18 +02:00
2024-11-29 10:18:07 +01:00
2024-11-15 15:39:00 +01:00
2025-01-27 11:11:43 +01:00
2025-02-26 13:00:18 +01:00
2025-02-17 16:16:29 +01:00
2024-09-02 15:50:25 +02:00
2025-02-22 11:32:40 +01:00
2025-02-06 11:19:32 +01:00
2025-02-06 17:01:15 +01:00
2025-02-21 18:26:29 +01:00
2024-10-29 12:14:50 +01:00
2024-11-07 18:17:03 +01:00
2025-02-17 16:37:53 +01:00
2024-09-16 22:55:25 +02:00
2025-02-24 09:39:57 +01:00
2025-02-27 17:31:40 +01:00
2025-03-06 10:49:48 +01:00
2025-01-28 12:49:41 +01:00
2024-12-20 17:34:05 +01:00
2025-02-28 17:37:00 +01:00
2024-11-26 16:12:05 +01:00
2025-02-03 17:09:48 +01:00
2024-10-17 12:16:35 +02:00
2024-11-06 10:06:52 +01:00
2024-10-17 17:25:06 +02:00
2024-12-11 10:00:01 +01:00
2025-01-03 10:10:09 +01:00
2024-11-19 15:20:02 +01:00
2024-11-19 15:29:40 +01:00
2025-01-31 15:51:51 +01:00
2025-03-03 12:43:32 +01:00
2024-07-26 16:59:00 +02:00
2025-01-28 12:49:41 +01:00
2025-01-28 12:49:41 +01:00
2025-02-12 11:48:10 +01:00
2025-01-28 12:49:41 +01:00
2025-01-28 12:49:41 +01:00
2024-12-16 10:44:01 +01:00
2024-11-21 19:55:21 +01:00
2025-01-23 17:40:48 +01:00
2025-03-06 09:30:39 +01:00
2024-11-15 15:39:58 +01:00
2024-11-26 16:12:05 +01:00
2024-08-30 14:58:59 +02:00
2025-02-28 16:07:05 +01:00
2025-02-28 17:31:20 +01:00
2025-02-24 09:39:57 +01:00
2025-01-31 10:41:50 +01:00
2025-02-19 11:08:02 +01:00
2025-02-20 11:56:27 +01:00
2024-11-19 14:13:30 +01:00
2025-01-07 16:42:38 +01:00
2024-12-10 08:05:34 +01:00
2024-11-29 07:22:25 +01:00
2024-12-05 12:15:24 +01:00
2025-01-02 14:31:07 +01:00
2024-12-06 18:34:10 +01:00
2025-03-03 04:05:47 +01:00
2024-11-25 15:20:24 +01:00
2024-08-30 18:53:49 +02:00
2024-08-21 17:37:46 +02:00
2024-10-29 12:14:50 +01:00
2025-02-21 07:59:08 +01:00
2024-08-30 18:53:49 +02:00
2025-03-06 09:30:39 +01:00
2025-02-19 11:03:40 +01:00
2025-01-28 17:44:54 +01:00
2025-01-23 14:49:35 +01:00
2025-01-30 17:19:38 +01:00
2024-12-13 14:42:43 +01:00
2025-01-30 17:19:38 +01:00
2025-01-30 17:19:38 +01:00
2025-01-23 17:40:48 +01:00
2024-09-03 17:49:21 +02:00
2024-11-26 14:55:30 +01:00
2025-01-23 17:40:48 +01:00
2025-02-14 09:00:05 +01:00
2025-01-31 15:34:30 +01:00
2025-01-23 17:41:07 +01:00
2024-10-04 17:56:45 +02:00
2024-08-30 17:04:09 +02:00
2025-01-27 11:11:43 +01:00
2025-01-23 14:49:35 +01:00
2024-12-17 17:47:57 +01:00
2024-10-17 15:04:06 +02:00
2024-10-09 17:47:16 +02:00
2024-10-01 16:19:25 +02:00
2024-08-30 17:04:09 +02:00
2024-10-04 17:56:45 +02:00
2025-02-12 15:10:54 +01:00
2025-01-31 10:41:50 +01:00
2025-01-06 09:08:38 +01:00
2024-07-24 17:59:03 +02:00
2024-11-18 16:11:55 +01:00
2024-12-11 10:00:01 +01:00
2025-02-27 04:21:01 +01:00
2024-10-29 12:14:37 +01:00
2024-05-21 17:55:03 +02:00
2025-02-21 17:41:38 +01:00
2025-02-21 11:22:35 +01:00
2024-08-30 18:53:49 +02:00
2024-10-29 12:15:24 +01:00
2025-01-31 10:41:50 +01:00
2025-02-17 18:26:37 +01:00
2025-02-07 20:56:42 +01:00
2025-02-17 18:26:37 +01:00
2025-02-13 17:44:00 +01:00
2025-01-07 15:19:42 +01:00
2024-08-26 15:17:40 +02:00
2025-01-31 10:41:50 +01:00
2024-12-16 14:54:53 +01:00
2024-11-19 16:44:51 +01:00
2024-12-10 16:19:33 +01:00
2025-02-06 17:19:49 +01:00
2025-01-28 12:49:41 +01:00
2024-12-23 17:32:07 +01:00
2025-01-31 10:41:50 +01:00
2025-01-16 11:50:33 +01:00
2025-02-26 13:00:18 +01:00
2024-11-25 08:09:09 +01:00
2025-02-21 18:31:46 +01:00
2024-10-04 21:38:14 +02:00
2025-02-03 17:09:48 +01:00
2025-03-04 18:57:29 +01:00
2025-02-03 18:46:41 +01:00
2025-02-10 18:34:43 +01:00
2025-02-21 18:26:29 +01:00
2025-01-10 14:50:59 +01:00
2024-11-14 15:03:38 +01:00
2024-07-18 13:29:52 +02:00
2024-09-15 23:51:51 +02:00
2025-01-20 17:53:55 +01:00
2025-02-24 13:37:52 +01:00
2025-02-18 10:43:56 +01:00