Commit 1e27038a authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix handling of request collisions

Thanks to Julien Cristau.
parent f2a221fa
...@@ -69,7 +69,7 @@ record_request(const unsigned char *prefix, unsigned char plen, ...@@ -69,7 +69,7 @@ record_request(const unsigned char *prefix, unsigned char plen,
request = find_request(prefix, plen, NULL); request = find_request(prefix, plen, NULL);
if(request) { if(request) {
if(request->router_hash == router_hash || if(request->router_hash == router_hash &&
seqno_compare(request->seqno, seqno) > 0) { seqno_compare(request->seqno, seqno) > 0) {
return 0; return 0;
} else { } else {
......
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