SHA256
1
0
forked from pool/ocserv
ocserv/ocserv-LZ4_compress_default.patch
Marguerite Su 99d43d9130 Accepting request 580000 from home:MargueriteSu:branches:network:vpn
- 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
2018-02-26 02:10:00 +00:00

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