patch-2.1.38 linux/net/ipv4/ip_options.c

Next file: linux/net/ipv4/ip_sockglue.c
Previous file: linux/net/ipv4/ip_fragment.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.37/linux/net/ipv4/ip_options.c linux/net/ipv4/ip_options.c
@@ -505,7 +505,7 @@
 	opt->is_data = 1;
 	opt->is_setbyuser = 1;
 	if (optlen && ip_options_compile(opt, NULL)) {
-		kfree_s(opt, sizeof(struct options) + optlen);
+		kfree_s(opt, sizeof(struct ip_options) + optlen);
 		return -EINVAL;
 	}
 	*optp = opt;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov