]> Pileus Git - ~andy/fetchmail/commitdiff
Fixed Debian bug report Bug#29913
authorEric S. Raymond <esr@thyrsus.com>
Thu, 26 Nov 1998 04:40:49 +0000 (04:40 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 26 Nov 1998 04:40:49 +0000 (04:40 -0000)
svn path=/trunk/; revision=2210

interface.c

index 392fa8d253f8f45c3ed99aa9eb379928b55b0321..8b7b00857f28bf12973c2cff7b0daa5e878724e4 100644 (file)
@@ -211,7 +211,7 @@ void interface_note_activity(struct hostdata *hp)
                   count has now changed and they need to be re-updated)
                */
                for (ctl = querylist; ctl; ctl = ctl->next) {
-                       if (!strcmp(hp->monitor, ctl->server.monitor))
+                       if (ctl->server.monitor && !strcmp(hp->monitor, ctl->server.monitor))
                                ctl->server.monitor_io =
                                        ifinfo.rx_packets + ifinfo.tx_packets;
                        /* do NOT update host entries following this one */