Prevent segfault if address lookup fails

This commit is contained in:
Jeremy Lakeman 2012-09-11 15:41:15 +09:30
parent 58fae14ef2
commit 9f35395b2c

View File

@ -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);