mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-04-28 09:40:59 +02:00
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:
parent
784b868c97
commit
99ade09cbf
@ -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. */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user