]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Fix parameter in ui/net.c 340/head
authorSean Wei <me@sean.taipei>
Wed, 25 Mar 2020 03:24:21 +0000 (11:24 +0800)
committerSean Wei <me@sean.taipei>
Wed, 25 Mar 2020 03:24:21 +0000 (11:24 +0800)
The 'net_send_query' function was use global varible 'packetsize'
and ignoring 'packet_size' parameter.

ui/net.c

index 2b6aa8525ad80cd2816d8c675865dedea040b400..830d4ab68cb79f134d3ecb56fb4433dcc41afd47 100644 (file)
--- a/ui/net.c
+++ b/ui/net.c
@@ -175,7 +175,7 @@ static void net_send_query(
     int time_to_live = index + 1;
 
     send_probe_command(ctl, &packet_command_pipe, remoteaddress,
-                       sourceaddress, packetsize, seq, time_to_live);
+                       sourceaddress, packet_size, seq, time_to_live);
 }