]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth-client: Compare ssl_ja3_hash to NULL and not 0
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 31 Dec 2024 10:19:53 +0000 (12:19 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 26 May 2025 05:39:13 +0000 (05:39 +0000)
ssl_ja3_hash is a pointer, not a number, so it's more correct
to compare it as pointer.

src/lib-auth-client/auth-client-request.c

index 9efa05037023a52fe91cfab06ad33d5bbac0940c..99351b07b86d5dcaaad774799f7acf2d1d187678 100644 (file)
@@ -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);