From: Aki Tuomi Date: Tue, 31 Dec 2024 10:19:53 +0000 (+0200) Subject: lib-auth-client: Compare ssl_ja3_hash to NULL and not 0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c70f8cd762fedb2c071ca65fe693e64f22c9be3c;p=thirdparty%2Fdovecot%2Fcore.git lib-auth-client: Compare ssl_ja3_hash to NULL and not 0 ssl_ja3_hash is a pointer, not a number, so it's more correct to compare it as pointer. --- diff --git a/src/lib-auth-client/auth-client-request.c b/src/lib-auth-client/auth-client-request.c index 9efa050370..99351b07b8 100644 --- a/src/lib-auth-client/auth-client-request.c +++ b/src/lib-auth-client/auth-client-request.c @@ -80,7 +80,7 @@ auth_server_send_new_request(struct auth_client_connection *conn, str_printfa(str, "\trport=%u", info->remote_port); event_add_int(request->event, "remote_port", info->remote_port); } - if (info->ssl_ja3_hash != 0) { + if (info->ssl_ja3_hash != NULL) { str_append(str, "\tssl_ja3_hash="); str_append_tabescaped(str,info->ssl_ja3_hash); event_add_str(request->event, "ssl_ja3_hash", info->ssl_ja3_hash);