cnping

Minimal Graphical Ping Tool
git clone https://git.sinitax.com/cnlohr/cnping
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit 6b89363e6b79ecbf612306d42a8ef94a5a2f756a
parent b3ad6230233bd0da6af0ff471866468ad3c4576d
Author: David Auer <dreua@posteo.de>
Date:   Sun,  4 Apr 2021 21:23:37 +0200

Fix false replies on Windows

Call display with the reply data instead of the send buffer.
Fixes: https://github.com/cntools/cnping/issues/82

Diffstat:
Mping.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ping.c b/ping.c @@ -109,7 +109,7 @@ static void * pingerthread( void * v ) } if( res ) { - display( ping_payload, rl ); + display( repl.rply.Data, rl ); } OGUnlockSema( s_disp ); } @@ -144,7 +144,7 @@ void ping(struct sockaddr_in *addr ) -#else +#else // ! WIN_USE_NO_ADMIN_PING //The normal way to do it - only problem is Windows needs admin privs. @@ -408,7 +408,7 @@ void ping_setup() } -#endif +#endif // WIN_USE_NO_ADMIN_PING