aboutsummaryrefslogtreecommitdiff
path: root/net/cshark/patches/010-gcc12.patch
blob: c36b3e7e4a650993b2e6df562e5c806ae818560d (plain)
1
2
3
4
5
6
7
8
9
10
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);
 }