cshark: fix compilation with GCC12
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
64aee7bf91
commit
2fd7ee49a5
1 changed files with 11 additions and 0 deletions
11
net/cshark/patches/010-gcc12.patch
Normal file
11
net/cshark/patches/010-gcc12.patch
Normal file
|
@ -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);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue