]> git.ipfire.org Git - thirdparty/openvpn.git/commit
socks: use the right function when printing struct openvpn_sockaddr
authorAntonio Quartulli <a@unstable.cc>
Sat, 9 Nov 2019 16:37:14 +0000 (17:37 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 9 Nov 2019 16:51:00 +0000 (17:51 +0100)
commit6c39b4dc4766594c6517043af59aeea53ea009d0
tree59f4bbcd15cbbf9b87e87a19a4a21c95fc61d193
parente64b4a9e68bde3cb7d878d277878fb2805040e3e
socks: use the right function when printing struct openvpn_sockaddr

57623b4e introduced a print_sockaddr() call in socks.c to print an
openvpn_sockaddr object.

However, this is not correct because print_sockaddr() expects a sockaddr
object as argument instead of openvpn_sockaddr.

This error did not lead to any issue because the two objects are very
similar in regards to the data accessed by print_sockaddr().

Fix this by replacing print_sockaddr() with print_openvpn_sockaddr().

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20191109163714.25506-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19073.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/socks.c