diff -rbu Libnet-1.1.1-RC-005-with-sandr8-patches/src/libnet_build_ip.c Libnet-1.1.1-RC-005-with-sandr8-patches-NO_IPV4_OPTIONS_PADDING_BUG/src/libnet_build_ip.c
--- Libnet-1.1.1-RC-005-with-sandr8-patches/src/libnet_build_ip.c 2003-07-10 22:28:12.000000000 +0200
+++ Libnet-1.1.1-RC-005-with-sandr8-patches-NO_IPV4_OPTIONS_PADDING_BUG/src/libnet_build_ip.c 2003-07-10 22:23:02.000000000 +0200
@@ -375,7 +375,12 @@
return (-1);
}
- n = libnet_pblock_append(l, p, options, adj_size);
+ n = libnet_pblock_append(l, p, options, option_s);
+ if (n == -1)
+ {
+ goto bad;
+ }
+ n = libnet_pblock_append(l, p, "\0\0\0", adj_size - option_s);
if (n == -1)
{
goto bad;
Only in Libnet-1.1.1-RC-005-with-sandr8-patches/src: libnet_build_ip.c.bak
|