BUILD: ssl: fix build warning with previous changes to ssl_sock_ctx

Some compilers see a possible null deref after conn_get_ssl_sock_ctx()
in ssl_sock_parse_heartbeat, which cannot happen there, so let's mark
it as safe. No backport needed.
This commit is contained in:
Willy Tarreau 2022-04-11 19:47:31 +02:00
parent 784b868c97
commit 99ade09cbf

View file

@ -1713,6 +1713,7 @@ static void ssl_sock_parse_heartbeat(struct connection *conn, int write_p, int v
const unsigned char *p = buf;
unsigned int payload;
ALREADY_CHECKED(ctx);
ctx->xprt_st |= SSL_SOCK_RECV_HEARTBEAT;
/* Check if this is a CVE-2014-0160 exploitation attempt. */