Commit 8af13018 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix incorrect parsing of IPv4 updates.

parent 5b9b745f
...@@ -333,7 +333,7 @@ parse_packet(const unsigned char *from, struct network *net, ...@@ -333,7 +333,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