summaryrefslogtreecommitdiffstats
path: root/package/isakmpd/patches/040-security_fix.patch
blob: d70a722452e37071834bb745df63ac665561fc79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Index: isakmpd-20041012.orig/ipsec.c
===================================================================
--- isakmpd-20041012.orig.orig/ipsec.c	2007-06-04 13:22:39.283883224 +0200
+++ isakmpd-20041012.orig/ipsec.c	2007-06-04 13:22:40.247736696 +0200
@@ -2176,9 +2176,10 @@
 {
 	struct ipsec_proto *iproto = proto->data;
 
-	if (proto->sa->phase == 2 && section)
-		iproto->replay_window = conf_get_num(section, "ReplayWindow",
-		    DEFAULT_REPLAY_WINDOW);
+	if (proto->sa->phase == 2)
+		iproto->replay_window = section ? conf_get_num(section,
+		    "ReplayWindow", DEFAULT_REPLAY_WINDOW) :
+		    DEFAULT_REPLAY_WINDOW;
 }
 
 /*