mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
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:
parent
7760e3a374
commit
93d4e9d50f
@ -1471,8 +1471,6 @@ int ssl_sock_bind_verifycbk(int ok, X509_STORE_CTX *x_store)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
BUG_ON(!ctx || !bind_conf);
|
BUG_ON(!ctx || !bind_conf);
|
||||||
ALREADY_CHECKED(ctx);
|
|
||||||
ALREADY_CHECKED(bind_conf);
|
|
||||||
|
|
||||||
ctx->xprt_st |= SSL_SOCK_ST_FL_VERIFY_DONE;
|
ctx->xprt_st |= SSL_SOCK_ST_FL_VERIFY_DONE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user