mirror of
https://github.com/curl/curl.git
synced 2026-08-25 16:03:40 +03:00
Take in account that CURLAUTH_* bitmasks are now 'unsigned long'
Data type of internal vars holding CURLAUTH_* bitmasks changed from 'long' to 'unsigned long' for proper handling and operating.
This commit is contained in:
parent
09690be8de
commit
9421b06397
5 changed files with 15 additions and 15 deletions
|
|
@ -37,7 +37,7 @@ struct Configurable {
|
|||
bool cookiesession; /* new session? */
|
||||
bool encoding; /* Accept-Encoding please */
|
||||
bool tr_encoding; /* Transfer-Encoding please */
|
||||
long authtype; /* auth bitmask */
|
||||
unsigned long authtype; /* auth bitmask */
|
||||
bool use_resume;
|
||||
bool resume_from_current;
|
||||
bool disable_epsv;
|
||||
|
|
|
|||
|
|
@ -680,7 +680,7 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[])
|
|||
int authbits = 0;
|
||||
int bitcheck = 0;
|
||||
while(bitcheck < 32) {
|
||||
if(config->authtype & (1 << bitcheck++)) {
|
||||
if(config->authtype & (1UL << bitcheck++)) {
|
||||
authbits++;
|
||||
if(authbits > 1) {
|
||||
/* more than one, we're done! */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue