fix a core in dev detection

This commit is contained in:
root 2018-06-30 18:10:59 +00:00
parent 7f848553f5
commit f7166bfde3

View File

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