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, ...@@ -636,16 +636,18 @@ send_update(struct network *net, int urgent,
int i; int i;
struct request *request; struct request *request;
/* This is needed here, since really_send_update only handles the if(prefix) {
case where network is not null. */ /* This is needed here, since really_send_update only handles the
request = find_request(prefix, plen, NULL); case where network is not null. */
if(request) { request = find_request(prefix, plen, NULL);
struct route *route; if(request) {
route = find_installed_route(prefix, plen); struct route *route;
if(route) { route = find_installed_route(prefix, plen);
urgent = 1; if(route) {
satisfy_request(prefix, plen, route->seqno, urgent = 1;
hash_id(route->src->address), net); 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