diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/bsnmp-jails.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/bsnmp-jails.c b/module/bsnmp-jails.c index f08da30..8fbefb2 100644 --- a/module/bsnmp-jails.c +++ b/module/bsnmp-jails.c @@ -464,7 +464,8 @@ monitor_for_device (const char *device) ASSERT (device); - while ((mon = TAILQ_FIRST (&monitors)) != NULL) { + /* Mark and prepare for sweep below */ + TAILQ_FOREACH (mon, &monitors, link) { ASSERT (mon->device); if (strcmp (mon->device, device) == 0) return mon; |