From 2fd7ee49a53ef2ebf11c703a30f2316692dde05d Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 8 Jun 2022 18:10:04 -0700 Subject: [PATCH] cshark: fix compilation with GCC12 Signed-off-by: Rosen Penev --- net/cshark/patches/010-gcc12.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 net/cshark/patches/010-gcc12.patch diff --git a/net/cshark/patches/010-gcc12.patch b/net/cshark/patches/010-gcc12.patch new file mode 100644 index 0000000000..c36b3e7e4a --- /dev/null +++ b/net/cshark/patches/010-gcc12.patch @@ -0,0 +1,11 @@ +--- 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); + } +