Files
asterisk/res
Albrecht Oster c251afadb9 res_pjproject: Fix DTLS client check failing on some platforms
Certain platforms (mainly BSD derivatives) have an additional length
field in `sockaddr_in6` and `sockaddr_in`.
`ast_sockaddr_from_pj_sockaddr()` does not take this field into account
when copying over values from the `pj_sockaddr` into the `ast_sockaddr`.
The resulting `ast_sockaddr` will have an uninitialized value for
`sin6_len`/`sin_len` while the other `ast_sockaddr` (not converted from
a `pj_sockaddr`) to check against in `ast_sockaddr_pj_sockaddr_cmp()`
has the correct length value set.

This has the effect that `ast_sockaddr_cmp()` will always indicate
an address mismatch, because it does a bitwise comparison, and all DTLS
packets are dropped even if addresses and ports match.

`ast_sockaddr_from_pj_sockaddr()` now checks whether the length fields
are available on the current platform and sets the values accordingly.

Resolves: #505
2025-04-21 14:45:56 +00:00
..
2023-04-03 07:58:23 -05:00
2025-01-29 14:18:21 +00:00
2023-01-31 11:23:11 -06:00
2024-02-28 18:39:01 +00:00
2023-01-10 14:07:44 -06:00
2025-04-02 12:16:35 +00:00
2025-01-29 14:18:21 +00:00
2021-11-18 16:25:51 -06:00
2025-04-02 12:16:35 +00: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
2025-04-02 12:16:35 +00:00
2025-01-29 14:18:21 +00:00
2021-12-03 10:38:39 -06:00
2021-12-03 10:38:39 -06:00
2021-11-15 16:37:34 -06:00
2025-01-29 14:18:21 +00:00
2025-01-29 14:18:21 +00:00
2021-11-15 16:37:34 -06:00
2025-01-29 14:18:21 +00:00
2025-01-29 14:18:21 +00:00
2021-12-03 10:38:39 -06:00
2025-01-29 14:18:21 +00:00
2025-01-29 14:18:21 +00:00
2025-01-29 14:18:21 +00:00
2024-02-28 18:39:01 +00:00
2025-01-29 14:18:21 +00:00
2025-01-29 14:18:21 +00:00
2025-01-29 14:18:21 +00:00
2021-11-15 16:37:34 -06:00
2021-11-15 16:37:34 -06:00
2025-01-29 14:18:21 +00:00
2021-12-03 10:38:39 -06:00
2023-12-08 13:11:51 +00:00
2025-01-29 14:18:21 +00:00