Files
asterisk/include/asterisk
Albrecht Oster d7b8f1a3a1 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
(cherry picked from commit 315289b87a)
2025-05-01 12:44:58 +00:00
..
2023-08-09 15:10:46 +00:00
2021-11-16 05:59:44 -06:00
2021-12-02 15:02:09 -06:00
2021-11-16 05:59:44 -06:00
2025-05-01 12:44:58 +00:00
2024-02-28 18:39:03 +00:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-03 10:38:39 -06:00
2023-01-10 14:07:44 -06:00
2024-08-12 15:21:35 +00:00
2024-08-12 15:21:35 +00:00
2021-12-02 15:02:09 -06:00
2021-12-13 08:57:26 -06:00
2021-12-02 15:02:09 -06:00
2023-01-31 11:23:11 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-09-10 11:08:11 -05:00
2023-04-10 14:38:51 -05:00
2018-04-20 12:50:03 +02:00
2021-12-13 08:57:26 -06:00
2021-12-02 15:02:09 -06:00
2023-01-10 14:07:44 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-11-18 16:13:18 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2025-05-01 12:44:58 +00:00
2021-12-13 08:57:26 -06:00
2021-12-02 15:02:09 -06:00
2025-05-01 12:44:58 +00:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2025-05-01 12:44:58 +00:00
2021-12-02 15:02:09 -06:00
2021-11-16 05:59:44 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-03 10:38:39 -06:00
2021-12-02 15:02:09 -06:00
2021-11-16 05:59:44 -06:00
2021-11-16 05:59:44 -06:00
2023-01-31 11:23:11 -06:00
2023-01-31 11:23:11 -06:00
2022-12-09 08:59:04 -06:00
2021-12-03 10:38:39 -06:00
2021-11-19 02:50:36 -06:00
2021-12-03 10:38:39 -06:00
2021-12-03 10:38:39 -06:00
2021-11-16 05:59:44 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-11-18 14:46:42 -06:00
2021-11-18 14:46:42 -06:00
2021-11-18 14:46:42 -06:00
2021-11-18 14:46:42 -06:00
2021-12-03 10:38:39 -06:00
2021-12-02 15:02:09 -06:00
2022-05-09 08:21:45 -05:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-13 08:57:26 -06:00
2021-12-02 15:02:09 -06:00
2023-01-31 11:23:11 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2018-06-23 08:26:19 +02:00
2021-12-02 15:02:09 -06:00
2023-01-31 11:23:11 -06:00