Files
asterisk/main
George Joseph 50bf8d4d30 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 10:38:02 -06:00
..
2021-11-15 15:28:45 -06:00
2021-11-15 15:28:45 -06:00
2021-12-02 15:02:42 -06:00
2024-01-12 18:21:33 +00:00
2020-05-05 10:06:43 -05:00
2024-01-12 18:21:33 +00:00
2021-11-15 15:28:45 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2020-04-06 10:23:20 -05:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2024-03-07 14:16:38 +00:00
2024-01-12 18:21:32 +00:00
2021-12-02 15:02:42 -06:00
2022-07-07 08:22:43 -05:00
2024-03-07 14:16:38 +00:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2020-06-10 09:33:28 -05:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-11-15 15:28:45 -06:00
2021-11-15 15:28:45 -06:00
2021-12-02 15:02:42 -06:00
2021-11-15 15:28:45 -06:00
2021-11-15 15:28:45 -06:00
2021-12-02 15:02:42 -06:00
2024-01-12 18:21:32 +00:00
2024-01-17 14:54:33 -07:00
2023-05-08 17:55:17 +00:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-11-15 15:28:45 -06:00
2021-12-02 15:02:42 -06:00
2021-11-18 13:25:54 -06:00
2021-11-18 13:25:54 -06:00
2024-01-12 18:21:33 +00:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2022-03-24 12:01:32 -05:00
2021-11-15 15:28:45 -06:00
2021-12-02 15:02:42 -06:00