Schannel: fix suspicious sizeof marked by clang
sizeof(1) should be fine, but it looks weird, so let's just use the type instead. Change-Id: I543462a837b0214883ca389be0e7e6ba2057cdd0 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
faebfdea1b
commit
e940ab807c
@ -1588,7 +1588,7 @@ void QSslSocketBackendPrivate::sendShutdown()
|
|||||||
{
|
{
|
||||||
const bool isClient = mode == QSslSocket::SslClientMode;
|
const bool isClient = mode == QSslSocket::SslClientMode;
|
||||||
DWORD shutdownToken = SCHANNEL_SHUTDOWN;
|
DWORD shutdownToken = SCHANNEL_SHUTDOWN;
|
||||||
SecBuffer buffer = createSecBuffer(&shutdownToken, sizeof(SCHANNEL_SHUTDOWN), SECBUFFER_TOKEN);
|
SecBuffer buffer = createSecBuffer(&shutdownToken, sizeof(DWORD), SECBUFFER_TOKEN);
|
||||||
SecBufferDesc token{
|
SecBufferDesc token{
|
||||||
SECBUFFER_VERSION,
|
SECBUFFER_VERSION,
|
||||||
1,
|
1,
|
||||||
|
Loading…
Reference in New Issue
Block a user