OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/lmtp2nntp_config.c versions 1.30 and 1.31
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/lmtp2nntp_config.c 1.30 -> 1.31

--- lmtp2nntp_config.c   2002/01/31 15:09:25     1.30
+++ lmtp2nntp_config.c   2002/01/31 15:13:16     1.31
@@ -592,6 +592,23 @@
     }
     catch (ex)
         rethrow;
+
+    /* --size SINGLE */
+    try {
+        if (   (val_get(ctx->val, "option.size", &ov) != VAL_OK)
+            || (ov->ndata != 1)
+            || (ov->data.s == NULL)
+              ) throw(0,0,0);
+        log1(ctx, TRACE, "--size = \"%s\"", ov->data.s);
+
+        if ((ctx->option_maxmessagesize = atoi(ov->data.s)) <= 0) {
+            log1(ctx, ERROR, "option --size, number (%d) out of range", ctx->option_maxmessagesize);
+            throw(0,0,0);
+        }
+    }
+    catch (ex)
+        rethrow;
+
 CUS:
     return;
 }

CVSTrac 2.0.1