summaryrefslogtreecommitdiff
path: root/extra/ntrack/dead-loop-fix.patch
blob: 133bb4ace9a2164008eab64863147f9cb8ea9418 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
=== modified file 'modules/ntrack-libnl.c'
--- modules/ntrack-libnl.c	2011-04-25 16:28:19 +0000
+++ modules/ntrack-libnl.c	2011-04-25 17:25:24 +0000
@@ -394,6 +394,9 @@
 		if (rtnl_link_get_ifindex(link) > iindex)
 			break;
 		i = i->next;
+
+		if (i == linklist)
+			break;
 	}
 	return result;
 }