summaryrefslogtreecommitdiff
path: root/ipmaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipmaddr.c')
-rw-r--r--ipmaddr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipmaddr.c b/ipmaddr.c
index 3927aad..de017df 100644
--- a/ipmaddr.c
+++ b/ipmaddr.c
@@ -181,7 +181,8 @@ void read_igmp(struct ma_info **result_p)
if (!fp)
return;
memset(&m, 0, sizeof(m));
- fgets(buf, sizeof(buf), fp);
+ if (fgets(buf, sizeof(buf), fp))
+ /* eat line */;
m.addr.family = AF_INET;
m.addr.bitlen = 32;