Commit be74fa44 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Avoid crash.

parent fbd39187
......@@ -280,7 +280,7 @@ handle_request(struct neighbour *neigh, const unsigned char *prefix,
if(hop_count <= 1)
return;
if(router_hash == hash_id(route->src->address) &&
if(route && router_hash == hash_id(route->src->address) &&
seqno_minus(seqno, route->seqno) > 100) {
/* Hopelessly out-of-date */
return;
......
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