OSSP CVS Repository

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

Check-in Number: 3225
Date: 2003-Feb-11 15:10:33 (local)
2003-Feb-11 14:10:33 (UTC)
User:thl
Branch:
Comment: properly clean up access control list socket abstraction addresses
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/lmtp2nntp_main.c      1.70 -> 1.71     5 inserted, 1 deleted

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

--- lmtp2nntp_main.c     2003/02/11 13:49:26     1.70
+++ lmtp2nntp_main.c     2003/02/11 14:10:33     1.71
@@ -736,8 +736,12 @@
         free(ctx->option_pidfile);
     if (ctx->pns != NULL)
         free(ctx->pns);
-    if (ctx->pacl != NULL)
+    if (ctx->pacl != NULL) {
+        for (i = 0; i < ctx->nacl; i++)
+            if (ctx->pacl[i].saa != NULL)
+                sa_addr_destroy(ctx->pacl[i].saa);
         free(ctx->pacl);
+    }
     if (ctx->option_nodename != NULL)
         free(ctx->option_nodename);
     if (ctx->prival != NULL)

CVSTrac 2.0.1