freebsd-ports/security/rain/files/patch-source__rain_igmp.c
Sam Lawrance 7ba81feca0 Fix condition where strlen() is called on non null-terminated string.
PR:		ports/72654
Submitted by:	David Gilbert <dgilbert@daveg.ca>
Approved by:	pat (maintainer, timeout)
Approved by:	clement (mentor)
2005-05-04 13:35:55 +00:00

11 lines
266 B
C

--- source/rain_igmp.c.orig Fri Aug 17 07:37:15 2001
+++ source/rain_igmp.c Wed Apr 20 01:18:45 2005
@@ -114,7 +114,7 @@
}
- pkt->tot_len = (sizeof(struct igmp) + strlen(buffer));
+ pkt->tot_len = (sizeof(struct igmp) + sizeof(char)*packetsize);
/*