mirror of
https://github.com/curl/curl.git
synced 2026-05-30 04:57:33 +03:00
curl_sasl: make Curl_sasl_decode_mech compare case insenstively
The provided mechanisms should be compared case insenstively. Found by ZeroPath Closes #19535
This commit is contained in:
parent
f5fa8048f7
commit
b3d4f17e3d
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ unsigned short Curl_sasl_decode_mech(const char *ptr, size_t maxlen,
|
|||
|
||||
for(i = 0; mechtable[i].name; i++) {
|
||||
if(maxlen >= mechtable[i].len &&
|
||||
!memcmp(ptr, mechtable[i].name, mechtable[i].len)) {
|
||||
curl_strnequal(ptr, mechtable[i].name, mechtable[i].len)) {
|
||||
if(len)
|
||||
*len = mechtable[i].len;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue