OSSP CVS Repository

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

ossp-pkg/lmtp2nntp/lmtp2nntp_config.c 1.39 -> 1.40

--- lmtp2nntp_config.c   2002/02/04 15:43:01     1.39
+++ lmtp2nntp_config.c   2002/02/05 10:40:51     1.40
@@ -449,7 +449,7 @@
             log2(ctx, TRACE, "--destination[%d] = \"%s\"", i, (ov->data.m)[i]);
 
         if (ov->ndata >= 1) {
-            if ((ctx->pacl = (struct acl *)malloc(ov->ndata * sizeof(struct acl))) == NULL) throw(0,0,0);
+            if ((ctx->pns = (struct ns *)malloc(ov->ndata * sizeof(struct ns))) == NULL) throw(0,0,0);
             for (i = 0; i < ov->ndata; i++) {
                 cp = (ov->data.m)[i];
                 log2(ctx, DEBUG, "cp = (data.m)[%d] = \"%s\"", i, cp);
@@ -457,15 +457,15 @@
                     cp = str_concat(cp, ":nntp", NULL); //FIXME is this a config var/val?
                 else
                     cp = str_concat(cp, NULL); /* prepare for free() */
-                if ((rc = sa_addr_create(&ctx->ns[i].saa)) != SA_OK) {
+                if ((rc = sa_addr_create(&ctx->pns[i].saa)) != SA_OK) {
                     log1(ctx, ERROR, "option --destination, create address (internal) failed with \"%s\"", sa_error(rc));
                     throw(0,0,0);
                 }
-                if ((rc = sa_addr_u2a(ctx->ns[i].saa, "inet://%s", cp)) != SA_OK) {
+                if ((rc = sa_addr_u2a(ctx->pns[i].saa, "inet://%s", cp)) != SA_OK) {
                     log2(ctx, ERROR, "option --destination, parsing host address (%s) failed with \"%s\"", cp /*FIXME again, option vs. config */, sa_error(rc));
                     throw(0,0,0);
                 }
-                if ((rc = sa_create(&ctx->ns[i].sa)) != SA_OK) {
+                if ((rc = sa_create(&ctx->pns[i].sa)) != SA_OK) {
                     log2(ctx, ERROR, "option --destination, creating TCP socket (%s) failed with \"%s\"", cp /*FIXME again, option vs. config */, sa_error(rc));
                     throw(0,0,0);
                 }

CVSTrac 2.0.1