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:
Olivier Houchard 2025-09-06 14:18:18 +02:00 committed by Olivier Houchard
parent 75bd9255dd
commit b3e685ac3d

View File

@ -344,7 +344,7 @@ static int ha_ssl_read(BIO *h, char *buf, int size)
struct cmsghdr hdr; struct cmsghdr hdr;
char buf[CMSG_SPACE(sizeof(unsigned char))]; char buf[CMSG_SPACE(sizeof(unsigned char))];
} cmsgbuf; } cmsgbuf;
size_t msg_controllen; size_t msg_controllen = 0;
#endif #endif
#endif #endif
struct buffer tmpbuf; struct buffer tmpbuf;