aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTor Arntsen <tor@spacetec.no>2010-07-07 11:55:31 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-07-07 19:35:03 +0200
commite7743aa7b4862df945a9586c181dfc1429c02d8c (patch)
tree957a57dc214702cbf06b5207d3ec0e304f4a65ff /src
parent915032ea022f356fe3c626d451c4c92b87c7d406 (diff)
upload: Avoid infinite loop when checking for auth bits
The test would loop forever if authtype bit 0 wasn't set.
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 7aa698505..60e7b596b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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! */