]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Replace all use of inet_ntoa() with inet_ntop()
authorDaniel Lenski <dlenski@gmail.com>
Tue, 4 May 2021 20:16:02 +0000 (13:16 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Tue, 4 May 2021 20:22:02 +0000 (13:22 -0700)
commit71bf1d939f55ff206e9f149bcc1bf2f4be2d7450
tree444c8b777842c174d151c74cb2a776963b1eb04c
parentcefa0aaf8d1b96eb9b62d96f7fee5639a5c3cad0
Replace all use of inet_ntoa() with inet_ntop()

inet_ntoa() uses a statically-allocated buffer, which means that it wouldn't
be safe for use by an a multithreaded application using libopenconnect (as
yet hypothetical).

We should use inet_ntop() instead in all cases, even though it's slightly
less convenient.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
gpst.c
ppp.c
script.c