From f7166bfde3e36005aab8637669bfa12789f45891 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 30 Jun 2018 18:10:59 +0000 Subject: [PATCH] fix a core in dev detection --- main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.cpp b/main.cpp index 3656e9c..c4fd371 100755 --- a/main.cpp +++ b/main.cpp @@ -810,6 +810,11 @@ int client_event_loop() log_bare(log_warn,"%s:", d->name); int cnt=0; for(pcap_addr_t *a=d->addresses; a!=NULL; a=a->next) { + if(a->addr==NULL) + { + log_bare(log_debug," [a->addr==NULL]"); + continue; + } if(a->addr->sa_family == AF_INET) { cnt++;