Commit c519a4b9 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't check recorded requests for unspecified prefix.

We'd check recorded requests for a null prefix, which caused a crash.
parent 7091888e
......@@ -636,16 +636,18 @@ send_update(struct network *net, int urgent,
int i;
struct request *request;
/* This is needed here, since really_send_update only handles the
case where network is not null. */
request = find_request(prefix, plen, NULL);
if(request) {
struct route *route;
route = find_installed_route(prefix, plen);
if(route) {
urgent = 1;
satisfy_request(prefix, plen, route->seqno,
hash_id(route->src->address), net);
if(prefix) {
/* This is needed here, since really_send_update only handles the
case where network is not null. */
request = find_request(prefix, plen, NULL);
if(request) {
struct route *route;
route = find_installed_route(prefix, plen);
if(route) {
urgent = 1;
satisfy_request(prefix, plen, route->seqno,
hash_id(route->src->address), net);
}
}
}
......
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