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! */