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:
Mårten Nordheim 2021-02-02 12:58:12 +01:00
parent faebfdea1b
commit e940ab807c

View File

@ -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,