CLEANUP: ssl-sock: drop two now unneeded ALREADY_CHECKED()

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.
This commit is contained in:
Willy Tarreau 2024-12-17 15:02:39 +01:00
parent 7760e3a374
commit 93d4e9d50f

View 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;