]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commit
Correct capacity argument when casting memory to sockaddr_* type. am/fix-addrinfo-crash
authorAndrej Mihajlov <and@mullvad.net>
Thu, 22 Sep 2022 08:21:29 +0000 (10:21 +0200)
committerAndrej Mihajlov <and@mullvad.net>
Thu, 22 Sep 2022 08:21:29 +0000 (10:21 +0200)
commitc587874e4775b192aa0cc0a139f0366548554fa6
tree3333228944caff5099b80b655482f6253c89a902
parent23618f994f17d8ad8f2f65d79b4a1e8a0830b334
Correct capacity argument when casting memory to sockaddr_* type.

The capacity argument indicates the number of instances of sockaddr_* and not
number of bytes within the pointer.

Signed-off-by: Andrej Mihajlov <and@mullvad.net>
Sources/WireGuardKit/IPAddress+AddrInfo.swift