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-01-13 08:32:33 -06:00
2023-08-09 15:10:46 +00:00
2021-11-16 05:59:44 -06:00
2024-11-14 20:02:03 +00:00
2021-12-02 10:26:08 -06:00
2017-12-22 09:23:22 -05:00
2025-01-23 18:42:28 +00:00
2021-12-02 15:02:09 -06:00
2021-11-16 05:59:44 -06:00
2024-11-14 20:02:03 +00:00
2025-05-01 12:44:58 +00:00
2017-12-22 09:23:22 -05:00
2023-09-14 17:58:24 +00:00
2024-02-28 18:39:03 +00:00
2025-01-23 18:42:28 +00: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
2025-05-01 12:44:58 +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-11-18 09:20:52 -06:00
2023-01-13 08:32:33 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2018-01-31 13:13:27 -06:00
2025-03-20 18:34:08 +00:00
2021-12-02 15:02:09 -06:00
2021-12-03 10:38:39 -06:00
2024-04-22 12:02:44 +00:00
2021-12-02 10:26:08 -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
2024-08-12 15:21:35 +00:00
2025-05-01 12:44:58 +00:00
2025-01-23 18:42:28 +00:00
2018-03-01 13:13:55 -06:00
2021-12-02 15:02:09 -06:00
2022-11-08 09:15:55 -06:00
2018-03-01 13:13:55 -06:00
2023-01-03 09:00:42 -06:00
2025-01-23 18:42:28 +00:00
2021-12-13 08:57:26 -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 10:37:38 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-11-18 08:17:56 -06:00
2021-12-02 15:02:09 -06:00
2020-03-13 09:58:59 -05:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2020-03-13 09:58:59 -05:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2023-05-03 09:37:57 -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-11-18 08:17:56 -06:00
2024-08-12 15:21:35 +00:00
2021-12-02 15:02:09 -06:00
2023-01-10 14:07:44 -06:00
2023-01-13 08:32:33 -06:00
2024-06-05 18:09:58 +00:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-01-04 05:00:58 -06:00
2021-12-02 15:02:09 -06:00
2025-03-20 18:34:07 +00: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
2017-12-22 09:23:22 -05: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
2025-05-01 12:44:58 +00:00
2021-12-13 08:57:26 -06:00
2017-12-22 09:23:22 -05:00
2021-12-02 15:02:09 -06:00
2024-04-29 13:24:07 +00:00
2025-05-01 12:44:58 +00:00
2021-11-18 08:17:56 -06:00
2025-01-23 18:42:28 +00:00
2021-12-02 15:02:09 -06:00
2025-01-23 18:42:28 +00:00
2025-01-23 18:42:28 +00:00
2021-12-02 15:02:09 -06:00
2025-05-01 12:44:58 +00:00
2019-01-28 12:26:58 -07:00
2021-12-02 15:02:09 -06:00
2019-11-18 08:30:45 -06:00
2021-11-16 05:59:44 -06:00
2024-04-30 14:14:17 +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
2023-09-20 19:15:07 +00:00
2022-12-08 08:07:12 -06:00
2020-12-09 11:17:27 -06:00
2025-01-23 18:42:28 +00: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
2017-12-22 09:23:22 -05:00
2021-11-16 05:59:44 -06:00
2017-12-22 09:23:22 -05:00
2025-03-20 18:34:07 +00:00
2023-01-31 11:23:11 -06:00
2023-01-31 11:23:11 -06:00
2025-05-01 12:44:58 +00:00
2019-12-13 14:24:10 -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
2023-12-20 14:02:33 +00:00
2021-12-03 10:38:39 -06:00
2021-11-18 12:14:54 -06:00
2023-05-18 11:41:38 -06:00
2021-11-18 12:14:54 -06:00
2025-03-20 18:34:07 +00:00
2025-01-29 10:00:47 -07:00
2021-12-03 10:38:39 -06:00
2025-03-20 18:34:07 +00:00
2024-09-12 18:46:48 +00:00
2021-11-16 05:59:44 -06:00
2022-01-21 10:06:57 -06:00
2021-12-02 15:02:09 -06:00
2017-12-04 17:21:27 -06:00
2021-12-02 15:02:09 -06:00
2017-12-22 09:23:22 -05:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2022-01-19 09:44:24 -06:00
2019-11-18 08:30:45 -06:00
2021-12-02 15:02:09 -06:00
2017-12-22 09:23:22 -05:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2019-01-28 12:26:58 -07:00
2022-04-26 14:26:48 -05:00
2021-11-18 08:17:56 -06:00
2021-12-13 08:57:26 -06:00
2021-12-02 10:37:38 -06:00
2021-12-02 10:37:38 -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
2025-05-01 12:44:58 +00:00
2025-03-20 18:34:08 +00:00
2021-12-13 08:57:26 -06:00
2025-03-20 18:34:07 +00:00
2021-12-13 08:57:26 -06:00
2021-12-13 08:57:26 -06:00
2021-11-18 14:46:42 -06:00
2019-06-28 11:41:15 -05:00
2021-11-18 14:46:42 -06:00
2021-11-18 14:46:42 -06:00
2021-12-02 10:37:38 -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
2025-01-23 18:42:28 +00:00
2021-11-18 08:17:56 -06:00
2021-11-18 08:17:56 -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 10:26:08 -06:00
2025-01-23 18:42:28 +00: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 10:26:08 -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
2023-03-01 09:50:02 -06:00
2023-05-11 13:05:49 -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
2025-01-23 18:42:28 +00:00