Skip to content
Snippets Groups Projects
Commit b3e48455 authored by Michael Tüxen's avatar Michael Tüxen
Browse files
parent ca83683d
No related branches found
No related tags found
No related merge requests found
......@@ -566,8 +566,11 @@ int netdev_receive_loop(struct packet_socket *psock,
/* Sniff the next outbound packet from the kernel under test. */
if (packet_socket_receive(psock, direction, &ether_type,
*packet, &in_bytes))
*packet, &in_bytes)) {
packet_free(*packet);
*packet = NULL;
continue;
}
++*num_packets;
result = parse_packet(*packet, in_bytes, ether_type, udp_encaps,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment