forked from pool/ocserv
99d43d9130
- update version 0.11.10 * see NEWS - drop boo1021353-ocserv-doc-racing-in-parallel-build.patch * upstreamed - add ocserv-LZ4_compress_default.patch * leap doesn't have LZ4_compress_default OBS-URL: https://build.opensuse.org/request/show/580000 OBS-URL: https://build.opensuse.org/package/show/network:vpn/ocserv?expand=0&rev=13
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
|
|
|