diff --git a/src/lib/ares_event_configchg.c b/src/lib/ares_event_configchg.c index 961224a0..dc6e4656 100644 --- a/src/lib/ares_event_configchg.c +++ b/src/lib/ares_event_configchg.c @@ -102,7 +102,7 @@ static void ares_event_configchg_cb(ares_event_thread_t *e, ares_socket_t fd, ptr += sizeof(struct inotify_event) + event->len) { event = (const struct inotify_event *)ptr; - if (ares_strlen(event->name) == 0) { + if (event->len == 0 || ares_strlen(event->name) == 0) { continue; }