Skip to content
Snippets Groups Projects
Commit 7b64e0e7 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Don't use return in a function not returning a value.

parent e30bfe4f
No related branches found
No related tags found
No related merge requests found
......@@ -215,9 +215,9 @@ void checksum_packet(struct packet *packet)
{
int address_family = packet_address_family(packet);
if (address_family == AF_INET)
return checksum_ipv4_packet(packet);
checksum_ipv4_packet(packet);
else if (address_family == AF_INET6)
return checksum_ipv6_packet(packet);
checksum_ipv6_packet(packet);
else
assert(!"bad ip version");
}
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