mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-29 15:43:56 +00:00
Prevent segfault if address lookup fails
This commit is contained in:
parent
58fae14ef2
commit
9f35395b2c
@ -135,6 +135,9 @@ static void parse_frame(struct overlay_buffer *buff){
|
||||
if (overlay_address_parse(buff, NULL, &frame.source))
|
||||
return;
|
||||
|
||||
if (!frame.source)
|
||||
return;
|
||||
|
||||
if (frame.source->reachable==REACHABLE_NONE){
|
||||
// locate the interface we should send outgoing unicast packets to
|
||||
overlay_interface *interface = overlay_interface_find(*addr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user