qos-scripts update:
[openwrt.git] / package / isakmpd / patches / 040-security_fix.patch
1 Index: isakmpd-20041012.orig/ipsec.c
2 ===================================================================
3 --- isakmpd-20041012.orig.orig/ipsec.c 2007-06-04 13:22:39.283883224 +0200
4 +++ isakmpd-20041012.orig/ipsec.c 2007-06-04 13:22:40.247736696 +0200
5 @@ -2176,9 +2176,10 @@
6 {
7 struct ipsec_proto *iproto = proto->data;
8
9 - if (proto->sa->phase == 2 && section)
10 - iproto->replay_window = conf_get_num(section, "ReplayWindow",
11 - DEFAULT_REPLAY_WINDOW);
12 + if (proto->sa->phase == 2)
13 + iproto->replay_window = section ? conf_get_num(section,
14 + "ReplayWindow", DEFAULT_REPLAY_WINDOW) :
15 + DEFAULT_REPLAY_WINDOW;
16 }
17
18 /*
This page took 0.047156 seconds and 5 git commands to generate.