Valentine Krasnobaeva
911f4d93d4
BUG/MINOR: pattern: pat_ref_set: return 0 if err was found
...
pat_ref_set_elt() returns 0, if we are run out of memory or can't parse a new
map value. Any arror message emitted by pat_ref_set_elt() is saved in err
buffer, if its provided by caller. These error messages are cumulated during
the loop.
pat_ref_set() is used to update values in map, referred to the same given key.
If during the update pat_ref_set_elt() fails, let's retun 0 to caller
immediately. We have the same non-unique key and the same new value in each
loop. So it seems quite odd to cumulate the same error messages and print it in
CLI:
> add map @1 mytest.map <<
+ 1.0.1.11 TestA
+ 1.0.1.11 TESTA
+ 1.0.1.11 test_a
+
> set map mytest.map 1.0.1.11 15
unable to parse '15' unable to parse '15' unable to parse '15'.
cli_parse_set_map(), which calls pat_ref_set() to update map, will return only
one error message with this patch:
> set map mytest.map 1.0.1.11 15
unable to parse '15'.
hlua_set_map() and http_action_set_map() don't provide error buffer and will
just exit on the first error.
This should be backported in all stable versions.
2024-08-13 16:13:43 +02:00
..
2024-05-06 18:42:54 +02:00
2024-05-28 19:25:08 +02:00
2024-07-12 15:27:04 +02:00
2024-07-29 09:27:01 +02:00
2024-05-10 17:18:13 +02:00
2024-07-18 14:15:59 +02:00
2024-07-25 15:39:39 +02:00
2024-07-28 14:59:23 +02:00
2024-06-14 11:36:52 +02:00
2024-04-30 21:40:17 +02:00
2024-08-09 15:43:29 +02:00
2024-08-08 17:29:37 +02:00
2024-07-12 15:27:04 +02:00
2024-08-09 17:47:20 +02:00
2024-05-06 08:25:17 +02:00
2024-05-10 17:18:13 +02:00
2024-07-12 15:27:04 +02:00
2024-04-02 07:27:33 +02:00
2024-07-16 14:04:41 +02:00
2024-07-09 16:46:38 +02:00
2024-03-25 17:34:19 +00:00
2024-05-10 17:18:13 +02:00
2024-05-21 17:55:20 +02:00
2024-05-24 12:07:18 +02:00
2024-05-17 15:57:18 +02:00
2024-05-24 12:07:18 +02:00
2024-05-24 12:07:18 +02:00
2024-07-09 16:46:38 +02:00
2024-07-12 15:27:04 +02:00
2024-08-06 08:21:49 +02:00
2024-07-15 19:19:13 +02:00
2023-11-18 11:16:21 +01:00
2024-07-11 14:51:23 +02:00
2024-05-10 17:18:13 +02:00
2024-08-07 18:41:41 +02:00
2024-06-13 15:43:09 +02:00
2024-04-26 11:29:25 +02:00
2024-08-01 18:23:32 +02:00
2024-08-01 18:23:32 +02:00
2024-08-02 08:42:28 +02:00
2024-05-16 10:31:17 +02:00
2024-08-09 17:41:16 +02:00
2024-08-08 19:54:12 +02:00
2024-07-09 16:46:38 +02:00
2024-07-02 10:05:40 +02:00
2024-05-10 17:18:13 +02:00
2024-04-04 19:10:01 +02:00
2024-08-02 08:42:28 +02:00
2024-05-24 14:36:31 +02:00
2024-06-20 16:38:48 +02:00
2024-03-25 16:24:15 +01:00
2024-04-04 19:10:01 +02:00
2024-05-24 16:17:24 +02:00
2024-04-04 19:10:01 +02:00
2024-01-11 15:10:08 +01:00
2023-11-23 16:23:14 +01:00
2024-07-26 16:59:00 +02:00
2024-04-02 07:00:10 +02:00
2024-03-29 17:08:37 +01:00
2024-07-16 14:04:41 +02:00
2024-06-26 07:38:21 +02:00
2024-07-11 15:14:06 +02:00
2024-06-14 18:25:21 +02:00
2024-04-13 08:43:12 +02:00
2024-06-17 19:37:29 +02:00
2024-03-28 17:28:20 +01:00
2024-07-12 15:27:04 +02:00
2024-08-07 16:02:59 +02:00
2024-08-07 16:02:59 +02:00
2024-07-30 10:44:00 +02:00
2024-08-09 17:41:16 +02:00
2024-07-24 14:19:10 +02:00
2024-06-27 16:08:42 +02:00
2024-08-13 16:13:43 +02:00
2024-08-02 08:42:29 +02:00
2024-07-09 16:46:38 +02:00
2024-08-01 11:35:27 +02:00
2024-07-11 15:14:06 +02:00
2024-08-08 16:34:13 +02:00
2024-01-02 11:44:42 +01:00
2024-08-09 17:38:42 +02:00
2024-04-12 18:51:40 +02:00
2024-07-25 15:39:39 +02:00
2023-12-21 15:42:08 +01:00
2024-08-07 16:02:59 +02:00
2024-05-16 10:31:17 +02:00
2024-01-29 15:40:19 +01:00
2024-07-29 09:27:01 +02:00
2024-02-05 14:31:21 +01:00
2024-07-26 16:42:44 +02:00
2024-07-24 11:07:19 +02:00
2023-11-28 15:37:50 +01:00
2024-07-03 15:02:40 +02:00
2024-07-26 16:42:44 +02:00
2024-08-06 18:00:17 +02:00
2024-01-31 16:28:54 +01:00
2024-02-15 17:04:17 +01:00
2024-02-14 11:32:29 +01:00
2024-01-16 10:17:27 +01:00
2024-08-07 11:03:32 +02:00
2024-07-25 13:45:38 +02:00
2024-07-25 15:39:39 +02:00
2024-08-07 11:03:32 +02:00
2024-07-26 15:24:35 +02:00
2024-07-30 18:53:08 +02:00
2024-04-26 10:20:57 +02:00
2024-08-07 18:14:29 +02:00
2024-08-07 16:02:59 +02:00
2024-04-06 00:07:49 +02:00
2024-08-07 15:40:52 +02:00
2024-08-07 10:57:10 +02:00
2024-07-18 13:29:52 +02:00
2024-07-24 17:59:03 +02:00
2024-07-08 14:23:14 +02:00
2024-07-18 13:29:52 +02:00
2024-08-07 18:31:35 +02:00
2024-08-07 16:02:59 +02:00
2024-05-21 17:55:03 +02:00
2023-11-23 16:23:14 +01:00
2024-07-25 14:56:19 +02:00
2024-04-30 21:38:24 +02:00
2024-05-24 14:36:31 +02:00
2024-07-17 16:52:06 +02:00
2024-07-30 18:53:08 +02:00
2024-05-21 18:30:45 +02:00
2024-03-12 17:37:11 +01:00
2024-05-17 17:35:51 +02:00
2024-07-18 16:39:38 +02:00
2024-07-30 18:53:08 +02:00
2024-05-17 14:53:19 +02:00
2024-07-12 15:27:05 +02:00
2024-04-26 10:20:57 +02:00
2024-07-12 15:27:05 +02:00
2024-05-03 09:01:36 +02:00
2024-08-07 14:07:41 +02:00
2024-07-18 16:12:36 +02:00
2024-07-18 16:39:38 +02:00
2024-04-03 15:53:18 +02:00
2023-11-23 16:23:14 +01:00
2024-05-24 14:36:31 +02:00
2023-11-18 11:16:21 +01:00
2024-07-31 10:29:42 +02:00
2024-07-24 14:19:10 +02:00
2024-05-24 09:46:49 +02:00
2024-08-11 14:44:28 +02:00
2024-08-07 16:02:59 +02:00
2024-04-22 16:25:18 +02:00
2024-07-18 13:29:52 +02:00
2024-07-18 17:06:12 +02:00
2024-08-07 15:40:52 +02:00