OSSP CVS Repository

ossp - Check-in [4471]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4471
Date: 2004-Apr-02 12:35:40 (local)
2004-Apr-02 10:35:40 (UTC)
User:thl
Branch:
Comment: loop must not be run if zero NNTP servers configured
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/lmtp2nntp_main.c      1.77 -> 1.78     2 inserted, 2 deleted

ossp-pkg/lmtp2nntp/lmtp2nntp_main.c 1.77 -> 1.78

--- 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)

CVSTrac 2.0.1