aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-grsec/ping_init_sock.patch
blob: 38b0c811b2fcd31f99eaa1e508c97d0738e55c68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
http://forums.grsecurity.net/viewtopic.php?f=3&t=3982

--- ./net/ipv4/ping.c.orig
+++ ./net/ipv4/ping.c
@@ -259,7 +259,7 @@
 
 	inet_get_ping_group_range_net(net, &low, &high);
 	if (gid_lte(low, group) && gid_lte(group, high))
-		goto out_release_group;
+		return 0;
 
 	group_info = get_current_groups();
 	count = group_info->ngroups;