mirror of
https://github.com/curl/curl.git
synced 2026-04-15 02:01:40 +03:00
schannel: replace a run-time condition with an assert
For detecting a bad function argument that probably also would cause a compiler warning. Closes #19203
This commit is contained in:
parent
3ac38a6b80
commit
3692cd837e
1 changed files with 2 additions and 6 deletions
|
|
@ -1711,15 +1711,11 @@ schannel_recv_renegotiate(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
failf(data, "schannel: unexpected call to schannel_recv_renegotiate");
|
||||
return CURLE_SSL_CONNECT_ERROR;
|
||||
}
|
||||
|
||||
DEBUGASSERT(caller <= SCH_RENEG_CALLER_IS_SEND);
|
||||
if(caller == SCH_RENEG_CALLER_IS_RECV)
|
||||
SCH_DEV(infof(data, "schannel: renegotiation caller is schannel_recv"));
|
||||
else if(caller == SCH_RENEG_CALLER_IS_SEND)
|
||||
else
|
||||
SCH_DEV(infof(data, "schannel: renegotiation caller is schannel_send"));
|
||||
else {
|
||||
failf(data, "schannel: unknown caller for schannel_recv_renegotiate");
|
||||
return CURLE_SSL_CONNECT_ERROR;
|
||||
}
|
||||
|
||||
sockfd = Curl_conn_cf_get_socket(cf, data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue