0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-22 13:06:15 +00:00
packages/net/cshark/patches/010-gcc12.patch
Rosen Penev 2fd7ee49a5 cshark: fix compilation with GCC12
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-06-10 14:09:35 -07:00

12 lines
250 B
Diff

--- a/src/uclient.c
+++ b/src/uclient.c
@@ -150,7 +150,7 @@ static void cshark_ustream_ssl_init(void
ssl_ctx = ssl_ops->context_new(false);
- if (config.ca)
+ if (strlen(config.ca))
ssl_ops->context_add_ca_crt_file(ssl_ctx, config.ca);
}