Commit 4b94996b authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix incorrect parsing of IPv4 updates.

parent ae8d9300
...@@ -291,7 +291,7 @@ parse_packet(const unsigned char *from, struct network *net, ...@@ -291,7 +291,7 @@ parse_packet(const unsigned char *from, struct network *net,
(message[3] == 1 ? have_v4_prefix : have_v6_prefix)) (message[3] == 1 ? have_v4_prefix : have_v6_prefix))
rc = network_prefix(message[2], message[4], message[5], rc = network_prefix(message[2], message[4], message[5],
message + 12, message + 12,
message[3] == 1 ? v4_prefix : v6_prefix, message[2] == 1 ? v4_prefix : v6_prefix,
len - 10, prefix); len - 10, prefix);
else else
rc = -1; rc = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment