From e5f20d05f6942f7ea41ca4539a221a94bab6805c Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 28 Jan 2025 12:45:35 +0300 Subject: [PATCH] nfqws: fix minor clang warning --- nfq/nfqws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfq/nfqws.c b/nfq/nfqws.c index 35d5d0f..8a22fb5 100644 --- a/nfq/nfqws.c +++ b/nfq/nfqws.c @@ -1035,7 +1035,7 @@ static void onetime_tls_mod(struct desync_profile *dp) char *s1=NULL, *s2=NULL; if (params.debug) { - if (s1 = malloc(slen+1)) + if ((s1 = malloc(slen+1))) { memcpy(s1,sni,slen); s1[slen]=0; }