forked from pool/ocserv
alternatives around and the build does not care wich one is used. OBS-URL: https://build.opensuse.org/package/show/network:vpn/ocserv?expand=0&rev=55
17 lines
541 B
Diff
17 lines
541 B
Diff
Index: ocserv-0.11.10/src/worker-http.c
|
|
===================================================================
|
|
--- ocserv-0.11.10.orig/src/worker-http.c
|
|
+++ ocserv-0.11.10/src/worker-http.c
|
|
@@ -137,7 +137,11 @@ int lz4_compress(void *dst, int dstlen,
|
|
{
|
|
/* we intentionally restrict output to srclen so that
|
|
* compression fails early for packets that expand. */
|
|
+#ifdef LZ4_COMPRESS_DEFAULT
|
|
return LZ4_compress_default(src, dst, srclen, srclen);
|
|
+#else
|
|
+ return LZ4_compress_limitedOutput(src, dst, srclen, srclen);
|
|
+#endif
|
|
}
|
|
#endif
|
|
|