mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MEDIUM: ssl: Properly initialize msg_controllen.
When kTLS is compiled in, make sure msg_controllen is initialized to 0. If we're not actually kTLS, then it won't be set, but we'll check that it is non-zero later to check if we ancillary data. This does not need to be backported. This should fix CID 1620865, as reported in github issue #3106.
This commit is contained in:
parent
75bd9255dd
commit
b3e685ac3d
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ static int ha_ssl_read(BIO *h, char *buf, int size)
|
|||
struct cmsghdr hdr;
|
||||
char buf[CMSG_SPACE(sizeof(unsigned char))];
|
||||
} cmsgbuf;
|
||||
size_t msg_controllen;
|
||||
size_t msg_controllen = 0;
|
||||
#endif
|
||||
#endif
|
||||
struct buffer tmpbuf;
|
||||
|
|
|
|||
Loading…
Reference in a new issue