Files
asterisk/res
George Joseph af3113d5c8 res_resolver_unbound: Test for NULL ub_result in unbound_resolver_callback
The ub_result pointer passed to unbound_resolver_callback by
libunbound can be NULL if the query was for something malformed
like `.1` or `[.1]`.  If it is, we now set a 'ns_r_formerr' result
and return instead of crashing with a SEGV.  This causes pjproject
to simply cancel the transaction with a "No answer record in the DNS
response" error.  The existing "off nominal" unit test was also
updated to check this condition.

Although not necessary for this fix, we also made
ast_dns_resolver_completed() tolerant of a NULL result.

Resolves: GHSA-v428-g3cw-7hv9
2024-09-05 16:32:22 +00:00
..
2023-04-03 07:13:57 -05:00
2024-08-12 15:21:31 +00:00
2023-01-31 12:59:16 -06:00
2024-02-28 18:38:58 +00:00
2021-12-03 10:38:39 -06:00
2023-04-03 07:13:57 -05:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-12-03 10:38:39 -06:00
2021-11-15 16:37:34 -06:00
2021-12-03 10:38:39 -06:00
2021-11-15 16:37:34 -06:00
2021-11-15 16:37:34 -06:00
2022-07-12 07:46:03 -05:00
2021-12-03 10:38:39 -06:00
2021-11-18 16:59:26 -06:00
2024-02-28 18:38:58 +00:00
2021-11-15 16:37:34 -06:00
2021-11-15 16:37:34 -06:00
2021-11-15 16:37:34 -06:00
2023-12-08 13:11:48 +00:00
2021-11-15 16:37:34 -06:00
2024-02-28 18:38:58 +00:00
2021-12-03 10:38:39 -06:00
2023-12-08 13:11:48 +00:00
2021-12-03 10:38:39 -06:00