schannel: fix -Warith-conversion gcc 13 warning

```
lib/vtls/schannel.c:1201:22: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Warith-conversion]
 1201 |     *extension_len = *list_len +
      |                      ^
```

Closes #12616
This commit is contained in:
Viktor Szakats 2024-01-01 23:31:47 +00:00
parent f0ea11b50b
commit aff26089e8
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -1198,9 +1198,8 @@ schannel_connect_step1(struct Curl_cfilter *cf, struct Curl_easy *data)
cur += proto.len;
*list_len = curlx_uitous(cur - list_start_index);
*extension_len = *list_len +
(unsigned short)sizeof(unsigned int) +
(unsigned short)sizeof(unsigned short);
*extension_len = (unsigned int)(*list_len +
sizeof(unsigned int) + sizeof(unsigned short));
InitSecBuffer(&inbuf, SECBUFFER_APPLICATION_PROTOCOLS, alpn_buffer, cur);
InitSecBufferDesc(&inbuf_desc, &inbuf, 1);