Aram Sargsyan
2e01162258
Refactor tkey.c:buildquery() error handling
...
After an earlier code cleanup, `dns_rdatalist_tordataset()` always
succeeds, so the `RETERR` error handling macro below the function
call was removed. After that change the `dynbuf` variable can never
be `NULL` in the error handling code path under the `failure` label.
*** CID 355779: Null pointer dereferences (REVERSE_INULL)
/lib/dns/tkey.c: 997 in buildquery()
991 dns_message_puttempname(msg, &aname);
992 }
993 if (question != NULL) {
994 dns_rdataset_disassociate(question);
995 dns_message_puttemprdataset(msg, &question);
996 }
>>> CID 355779: Null pointer dereferences (REVERSE_INULL)
>>> Null-checking "dynbuf" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
997 if (dynbuf != NULL) {
998 isc_buffer_free(&dynbuf);
999 }
1000 return (result);
1001 }
1002
Refactor the `buildquery()` function to simplify its error handling.
2022-08-16 07:36:12 +00:00
..
2022-08-09 08:19:51 +00:00
2022-06-01 13:00:40 +01:00
2022-04-04 19:27:00 +02:00
2022-08-12 14:47:50 -07:00
2022-01-11 09:05:02 +01:00
2022-05-25 14:44:32 +02:00
2022-05-25 16:04:51 +02:00
2022-01-11 09:05:02 +01:00
2022-06-02 08:42:25 +00:00
2022-07-05 12:29:01 +10:00
2022-01-27 13:53:59 -08:00
2022-06-01 13:00:40 +01:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-08-09 08:19:51 +00:00
2022-07-14 16:31:01 -07:00
2022-04-01 23:50:34 +02:00
2022-04-04 19:27:00 +02:00
2022-03-25 08:33:43 +01:00
2022-08-09 08:19:51 +00:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-03-25 08:33:43 +01:00
2022-05-23 11:36:36 +02:00
2022-05-13 13:31:17 +02:00
2022-03-02 10:48:09 +00:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-05-03 10:02:19 +02:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-06-09 10:47:04 +00:00
2022-03-04 14:13:58 +01:00
2022-01-11 09:05:02 +01:00
2022-03-18 15:06:31 +00:00
2022-03-25 08:33:43 +01:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-06-01 13:00:40 +01:00
2022-06-28 11:56:31 +02:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-06-28 11:56:31 +02:00
2022-07-05 12:29:01 +10:00
2022-01-11 09:05:02 +01:00
2022-07-13 00:14:13 +00:00
2022-08-09 08:19:51 +00:00
2022-03-25 08:33:43 +01:00
2022-08-09 08:19:51 +00:00
2022-07-11 12:26:15 +02:00
2022-08-09 08:19:51 +00:00
2022-06-01 13:00:40 +01:00
2022-08-09 08:19:51 +00:00
2022-05-25 16:04:51 +02:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-07-18 13:38:47 +02:00
2022-07-18 13:38:47 +02:00
2022-03-25 08:33:43 +01:00
2022-03-17 18:27:45 +01:00
2022-07-25 10:32:13 -04:00
2022-03-25 08:33:43 +01:00
2022-03-25 08:33:43 +01:00
2022-07-15 10:33:46 +00:00
2022-05-02 19:47:58 +01:00
2022-07-25 16:05:21 +02:00
2022-05-03 00:41:42 +01:00
2022-01-11 09:05:02 +01:00
2022-06-01 13:00:40 +01:00
2022-01-11 09:05:02 +01:00
2022-08-09 08:19:51 +00:00
2022-06-01 13:00:40 +01:00
2022-01-11 09:05:02 +01:00
2022-05-03 12:38:59 +00:00
2022-08-09 08:19:51 +00:00
2022-08-09 08:19:51 +00:00
2022-01-11 09:05:02 +01:00
2022-05-03 12:38:59 +00:00
2022-05-25 16:04:51 +02:00
2022-01-11 09:05:02 +01:00
2022-03-25 08:33:43 +01:00
2022-08-09 08:19:51 +00:00
2022-08-09 08:19:51 +00:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-04-04 19:27:00 +02:00
2022-03-25 08:33:43 +01:00
2022-05-28 14:53:02 -07:00
2022-05-03 12:38:59 +00:00
2022-08-16 07:36:12 +00:00
2022-05-03 17:15:43 +03:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-08-09 08:19:51 +00:00
2022-01-11 09:05:02 +01:00
2022-04-01 23:50:34 +02:00
2022-05-13 13:36:10 -07:00
2022-07-06 19:36:54 -07:00
2022-08-09 08:19:51 +00:00
2022-01-11 09:05:02 +01:00
2022-08-09 08:19:51 +00:00
2022-01-11 09:05:02 +01:00
2022-05-02 21:11:12 +01:00
2022-01-11 09:05:02 +01:00