sasl: use 'unsigned short' to store mechanism

... saves a few bytes of struct size in memory and it only uses
10 bits anyway.

Closes #7045
This commit is contained in:
Daniel Stenberg 2021-05-11 11:11:40 +02:00
parent fa050ffd27
commit a9bc819c89
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 13 additions and 12 deletions

View file

@ -919,7 +919,7 @@ static CURLcode imap_state_capability_resp(struct Curl_easy *data,
/* Do we have a SASL based authentication mechanism? */
else if(wordlen > 5 && !memcmp(line, "AUTH=", 5)) {
size_t llen;
unsigned int mechbit;
unsigned short mechbit;
line += 5;
wordlen -= 5;