OSSP CVS Repository

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

ossp-pkg/lmtp2nntp/lmtp2nntp.c 1.70 -> 1.71

--- lmtp2nntp.c  2001/10/09 08:24:58     1.70
+++ lmtp2nntp.c  2001/10/09 09:08:02     1.71
@@ -461,7 +461,6 @@
                 }
                 else 
                     ctx->cpBindp = strdup("0");
-                //FIXME
                 if ((rc = sa_addr_create(&ctx->saaBind)) != SA_OK) {
                     fprintf(stderr, "%s:Error: Creating address failed for -b option (%d)\n", 
                             ctx->progname, rc);
@@ -869,6 +868,10 @@
     CUS:
     log0(ctx, NOTICE, "graceful shutdown shortly before exit - no more logging");
     l2_stream_destroy(ctx->l2);
+    if (ctx->saAltio)
+        sa_destroy(ctx->saAltio);
+    if (ctx->saaAltio)
+        sa_addr_destroy(ctx->saaAltio);
     if (ctx->option_pidfile != NULL)
         free(ctx->option_pidfile);
     if (ctx->option_logfile != NULL)
@@ -880,7 +883,6 @@
     if (ctx != NULL)
         free(ctx);
     str_parse(NULL, NULL);
-    //FIXME 2 * sa_addr_destroy()
 
     return rc;
 }
@@ -929,7 +931,7 @@
     int          bOk;
     int          i;
     nntp_io_t    nntp_io;
-    int          s; //FIXME
+    int          s;
 
     log1(ctx, INFO, "LMTP service executing LHLO command < %s", req->msg);
 
@@ -1010,7 +1012,6 @@
 
         if (bOk) {
             log0(ctx, DEBUG, "nntp_create");
-            //FIXME
             sa_getfd(ctx->ns[i].sa, &s);
             if ((ctx->ns[i].nntp = nntp_create(s, s, 
                                                (ctx->option_logfile && (ctx->option_levelmask >= L2_LEVEL_TRACE)) ?
@@ -1098,7 +1099,7 @@
         ns->sa = NULL;
     }
     if (ns->saa != NULL) {
-        free(ns->saa);
+        sa_addr_destroy(ns->saa);
         ns->saa = NULL;
     }
     if (ns->p != NULL) {
@@ -1128,6 +1129,8 @@
         free(ctx->cpBindp);
     if (ctx->saBind != NULL)
         sa_destroy(ctx->saBind);
+    if (ctx->saaBind != NULL)
+        sa_addr_destroy(ctx->saaBind);
 }
 
 static int helo_rfc0821domain(char *msg, char **domain)

CVSTrac 2.0.1