Skip to content

Commit

Permalink
Clear packet before creating new one
Browse files Browse the repository at this point in the history
Else we send the last packet as payload for the
new one.
Better would be to use ptags for reuse and
modification of packets.
  • Loading branch information
ArnoStiefvater committed Jan 26, 2021
1 parent e4a29ef commit 9ad6e14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions boreas/arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ send_arp_v4 (const char *dst_str)
g_debug ("ARP PING %s", dst_str);

pingip_send ();
libnet_clear_packet (libnet);

g_free (target);
}

0 comments on commit 9ad6e14

Please sign in to comment.