Even if this cannot happen, ensure <bind_conf> is initialized in this
function to please some compilers.
Takes the opportunity of this patch to replace an ABORT_NOW() by
a BUG_ON() because if the variable values they test are not initialized,
this is really because there is a bug.
Must be backported to 2.6.
int err, depth;
X509 *client_crt;
STACK_OF(X509) *certs;
- struct bind_conf *bind_conf;
+ struct bind_conf *bind_conf = NULL;
struct quic_conn *qc = NULL;
ssl = X509_STORE_CTX_get_ex_data(x_store, SSL_get_ex_data_X509_STORE_CTX_idx());
}
#endif
- if (!ctx || !bind_conf) {
- /* Must never happen */
- ABORT_NOW();
- }
+ BUG_ON(!ctx || !bind_conf);
ctx->xprt_st |= SSL_SOCK_ST_FL_VERIFY_DONE;