Skip to content

Commit

Permalink
fix a core in dev detection
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Jun 30, 2018
1 parent 7f84855 commit f7166bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.cpp
Expand Up @@ -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++;
Expand Down

0 comments on commit f7166bf

Please sign in to comment.