Commit e7743aa7 authored by Tor Arntsen's avatar Tor Arntsen Committed by Daniel Stenberg
Browse files

upload: Avoid infinite loop when checking for auth bits

The test would loop forever if authtype bit 0 wasn't set.
parent 915032ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4925,7 +4925,7 @@ 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 & (1 << bitcheck++)) {
              authbits++;
              if(authbits > 1) {
                /* more than one, we're done! */