openvpn: enable options consistency check even in the small build
authorFelix Fietkau <nbd@openwrt.org>
Tue, 10 Nov 2015 12:04:04 +0000 (12:04 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 10 Nov 2015 12:04:04 +0000 (12:04 +0000)
Only costs about 3k compressed, but significantly improves handling of
configuration mismatch

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 47439

package/network/services/openvpn/patches/200-small_build_enable_occ.patch [new file with mode: 0644]

diff --git a/package/network/services/openvpn/patches/200-small_build_enable_occ.patch b/package/network/services/openvpn/patches/200-small_build_enable_occ.patch
new file mode 100644 (file)
index 0000000..929d881
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/src/openvpn/syshead.h
++++ b/src/openvpn/syshead.h
+@@ -597,9 +597,7 @@ socket_defined (const socket_descriptor_
+ /*
+  * Should we include OCC (options consistency check) code?
+  */
+-#ifndef ENABLE_SMALL
+ #define ENABLE_OCC
+-#endif
+ /*
+  * Should we include NTLM proxy functionality