While the SSL initialization might failed later on and the c->privctx are not populated. This can cause crashes if, for example, redisSSLAsyncWrite will be called later on.
I can submit a PR to set the callbacks only on successful initialization but wanted to consult first if it makes sense or maybe I am missing something.
Hey, I encounter an issue where the SSL connection callbacks are set regardless of the success or failure of the SSL initialization. This happened here: https://github.com/redis/hiredis/blob/869f3d0ef1513dd0258ad7190c9914df16dcc4a4/ssl.c#L367
While the SSL initialization might failed later on and the
c->privctx
are not populated. This can cause crashes if, for example,redisSSLAsyncWrite
will be called later on.I can submit a PR to set the callbacks only on successful initialization but wanted to consult first if it makes sense or maybe I am missing something.
Thanks.