]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: ssl-sock: drop two now unneeded ALREADY_CHECKED()
authorWilly Tarreau <w@1wt.eu>
Tue, 17 Dec 2024 14:02:39 +0000 (15:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Dec 2024 16:47:57 +0000 (17:47 +0100)
In ssl_sock_bind_verifycbk() a BUG_ON() checks the validity of "ctx" and
"bind_conf". There was a pair of ALREADY_CHECKED() macros after BUG_ON()
for the case where DEBUG_STRICT=0. But this is now addressed so we can
remove these two macros and rely on the BUG_ON() instead.

src/ssl_sock.c

index 856cb05f04840b5951040c3224ef32c288bf4147..f2577f9abfe31b537b9d5b02bb7e0dffba8c4538 100644 (file)
@@ -1471,8 +1471,6 @@ int ssl_sock_bind_verifycbk(int ok, X509_STORE_CTX *x_store)
 #endif
 
        BUG_ON(!ctx || !bind_conf);
-       ALREADY_CHECKED(ctx);
-       ALREADY_CHECKED(bind_conf);
 
        ctx->xprt_st |= SSL_SOCK_ST_FL_VERIFY_DONE;