OSSP CVS Repository

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

ossp-pkg/lmtp2nntp/lmtp2nntp_main.c 1.33 -> 1.34

--- lmtp2nntp_main.c     2002/02/04 14:48:30     1.33
+++ lmtp2nntp_main.c     2002/02/04 15:43:01     1.34
@@ -394,56 +394,6 @@
     (void)option_create(&o, ctx->val); /* FIXME */
     (void)option_parse(o, argc, argv);
     (void)config_context(ctx);
-    printf("DEBUG: trace #1\n");
-
-    /* if no positive ACL exists (option -a) add a wildcard match-all for IPv4 and IPv6 */
-    bOk = FALSE;
-    for (i = 0; i < ctx->nacl; i++) {
-        if (!ctx->pacl[i].not) {
-            bOk = TRUE;
-            break;
-        }
-    }
-    if (!bOk) {
-        if (ctx->nacl >= MAXACLS) {
-            fprintf(stderr, "%s:Error: Too many ACL (%d) using option -a (no space for additional fake IPv4 ACL)\n", ctx->progname, ctx->nacl);
-            CU(ERR_EXECUTION);
-        }
-        ctx->pacl[ctx->nacl].acl = "0.0.0.0";
-        ctx->pacl[ctx->nacl].not = FALSE;
-        ctx->pacl[ctx->nacl].prefixlen = 0;
-        if ((rc = sa_addr_create(&ctx->pacl[ctx->nacl].saa)) != SA_OK) {
-            fprintf(stderr, "%s:Error: Creating fake address failed for -a option (%d)\n", 
-                    ctx->progname, rc);
-        }
-        if ((rc = sa_addr_u2a(ctx->pacl[ctx->nacl].saa, "inet://%s:0", ctx->pacl[ctx->nacl].acl)) != SA_OK) {
-            fprintf(stderr, "%s:Error: Parsing host address failed for \"%s:0\" (%s)\n", 
-                    ctx->progname, ctx->pacl[ctx->nacl].acl,
-                    sa_error(rc));
-            CU(ERR_EXECUTION);
-        }
-        ctx->nacl++;
-    }
-    if (!bOk) {
-        if (ctx->nacl >= MAXACLS) {
-            fprintf(stderr, "%s:Error: Too many ACL (%d) using option -a (no space for additional fake IPv6 ACL)\n", ctx->progname, ctx->nacl);
-            CU(ERR_EXECUTION);
-        }
-        ctx->pacl[ctx->nacl].acl = "[::]";
-        ctx->pacl[ctx->nacl].not = FALSE;
-        ctx->pacl[ctx->nacl].prefixlen = 0;
-        if ((rc = sa_addr_create(&ctx->pacl[ctx->nacl].saa)) != SA_OK) {
-            fprintf(stderr, "%s:Error: Creating fake address failed for -a option (%d)\n", 
-                    ctx->progname, rc);
-        }
-        if ((rc = sa_addr_u2a(ctx->pacl[ctx->nacl].saa, "inet://%s:0", ctx->pacl[ctx->nacl].acl)) != SA_OK) {
-            fprintf(stderr, "%s:Error: Parsing host address failed for \"%s:0\" (%s)\n", 
-                    ctx->progname, ctx->pacl[ctx->nacl].acl,
-                    sa_error(rc));
-            CU(ERR_EXECUTION);
-        }
-        ctx->nacl++;
-    }
 
     if (getuid() != ctx->option_uid) {
         if (setuid(ctx->option_uid) == -1) {

CVSTrac 2.0.1