Index: ossp-pkg/lmtp2nntp/lmtp2nntp_main.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/lmtp2nntp_main.c,v rcsdiff -q -kk '-r1.77' '-r1.78' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/lmtp2nntp_main.c,v' 2>/dev/null --- lmtp2nntp_main.c 2004/04/02 10:25:47 1.77 +++ lmtp2nntp_main.c 2004/04/02 10:35:40 1.78 @@ -865,7 +865,7 @@ logbook(ctx->l2, L2_LEVEL_NOTICE, "NNTP running in fake mode, network connections will be executed but result is ignored"); i = 0; is = 0; - do { + while (i < ctx->nns) { logbook(ctx->l2, L2_LEVEL_DEBUG, "trying ns[%d]", i); bOk = TRUE; logbook(ctx->l2, L2_LEVEL_TRACE, "try destination#%d ${option.destination[%d]}", i, i); @@ -921,7 +921,7 @@ lmtp_gfs_ns(&ctx->pns[i]); } i++; - } while (i < ctx->nns); + } logbook(ctx->l2, L2_LEVEL_INFO, "NNTP network connections tried %d, successful %d", i, is); if (ctx->option_operationmode == OPERATIONMODE_FAKE)