Ondřej Surý
40659b5978
Restore the IS_STUB() condition in zone_zonecut_callback
...
After the refactoring the condition whether to use DNAME or NS for the
zonecut was incorrectly simplified and the !IS_STUB() condition was
removed. This was flagged by Coverity as:
/lib/dns/rbt-zonedb.c: 192 in zone_zonecut_callback()
186 found = ns_header;
187 search->zonecut_sigheader = NULL;
188 } else if (dname_header != NULL) {
189 found = dname_header;
190 search->zonecut_sigheader = sigdname_header;
191 } else if (ns_header != NULL) {
>>> CID 462773: Control flow issues (DEADCODE)
>>> Execution cannot reach this statement: "found = ns_header;".
192 found = ns_header;
193 search->zonecut_sigheader = NULL;
194 }
195
196 if (found != NULL) {
197 /*
Instead of removing the extra block, restore the !IS_STUB() condition
for the first if block.
2023-07-20 17:59:44 +02:00
..
2023-07-20 12:44:19 +02:00
2023-04-03 10:25:56 +00:00
2023-02-15 09:30:04 +01:00
2023-07-04 18:23:57 +00:00
2023-03-31 15:02:06 +02:00
2023-02-16 18:35:32 +01:00
2023-07-17 14:50:25 +02:00
2023-02-15 16:44:47 +00:00
2023-07-06 10:46:46 +00:00
2023-05-12 20:48:31 +01:00
2023-02-07 23:48:22 -08:00
2023-07-17 14:50:25 +02:00
2023-02-28 11:44:15 +01:00
2023-02-28 11:44:15 +01:00
2023-07-19 15:32:21 +02:00
2023-06-01 16:51:38 +02:00
2023-07-17 14:50:25 +02:00
2023-06-14 09:08:56 +02:00
2023-04-03 10:25:56 +00:00
2023-06-14 08:14:38 +00:00
2023-04-03 12:06:04 +10:00
2023-04-03 12:06:04 +10:00
2023-03-31 12:52:59 +00:00
2023-03-08 08:36:25 +01:00
2023-02-16 17:51:55 +01:00
2023-02-15 16:44:47 +00:00
2023-02-15 09:30:04 +01:00
2023-02-06 13:26:36 +00:00
2023-02-15 16:44:47 +00:00
2023-02-15 16:44:47 +00:00
2023-06-29 08:28:48 +10:00
2023-01-09 12:15:21 -08:00
2023-02-15 16:44:47 +00:00
2023-05-11 17:07:51 +02:00
2023-07-20 12:40:52 +02:00
2023-04-17 10:56:08 +02:00
2023-07-17 14:50:25 +02:00
2023-03-23 12:57:01 -07:00
2023-07-17 14:50:25 +02:00
2023-03-31 13:32:56 +02:00
2023-03-31 13:32:56 +02:00
2023-06-14 08:14:38 +00:00
2023-04-05 14:46:39 +00:00
2023-07-17 14:50:25 +02:00
2023-04-25 05:03:12 +01:00
2023-03-08 08:36:25 +01:00
2023-03-31 13:32:56 +02:00
2023-04-03 12:06:04 +10:00
2023-03-08 08:36:25 +01:00
2023-03-08 08:36:25 +01:00
2023-03-08 13:50:46 +01:00
2023-04-05 08:03:43 +00:00
2023-03-08 13:50:46 +01:00
2023-01-09 12:15:21 -08:00
2023-02-15 16:44:47 +00:00
2023-05-15 20:49:42 +00:00
2023-05-20 07:26:21 +00:00
2023-07-17 14:50:25 +02:00
2023-07-20 17:59:44 +02:00
2023-03-31 12:43:30 +00:00
2023-07-17 14:50:25 +02:00
2023-07-17 14:50:25 +02:00
2023-03-08 08:36:25 +01:00
2023-05-23 08:53:23 +02:00
2023-07-17 14:50:25 +02:00
2023-07-17 14:50:25 +02:00
2023-02-28 11:44:15 +01:00
2023-07-17 14:50:25 +02:00
2023-01-09 12:15:21 -08:00
2023-07-19 15:32:21 +02:00
2023-05-16 02:04:55 +00:00
2023-07-19 15:32:21 +02:00
2023-06-15 15:32:04 +02:00
2023-03-31 13:32:56 +02:00
2023-03-31 15:02:06 +02:00
2023-03-31 12:43:30 +00:00
2023-07-17 14:50:25 +02:00
2023-02-15 16:44:47 +00:00
2023-02-15 16:44:47 +00:00
2023-04-03 12:08:05 +01:00
2023-03-31 13:33:16 +02:00
2023-06-14 08:14:38 +00:00
2023-02-15 09:30:04 +01:00
2023-06-14 08:14:38 +00:00
2023-06-14 08:14:38 +00:00
2023-02-15 16:44:47 +00:00
2023-07-20 12:44:19 +02:00
2023-06-06 19:04:17 +02:00
2023-06-14 19:21:28 +10:00
2023-07-19 15:32:21 +02:00
2023-07-20 12:40:54 +02:00
2023-07-20 12:44:19 +02:00
2023-04-03 10:25:56 +00:00
2023-05-12 20:48:31 +01:00