mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-26 00:27:54 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue