OSSP CVS Repository

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

Check-in Number: 3149
Date: 2003-Feb-06 11:51:40 (local)
2003-Feb-06 10:51:40 (UTC)
User:thl
Branch:
Comment: defeat double free(3)
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/lmtp2nntp_config.c      1.90 -> 1.91     1 inserted, 1 deleted

ossp-pkg/lmtp2nntp/lmtp2nntp_config.c 1.90 -> 1.91

--- lmtp2nntp_config.c   2003/01/30 19:45:20     1.90
+++ lmtp2nntp_config.c   2003/02/06 10:51:40     1.91
@@ -254,7 +254,7 @@
         logbook(ctx->l2, L2_LEVEL_TRACE, "--pidfile = \"%s\"", ov->data.s);
 
         if (ov->ndata == 1)
-            ctx->option_pidfile = ov->data.s;
+            ctx->option_pidfile = strdupex(ov->data.s);
     }
     catch (ex)
         rethrow;

CVSTrac 2.0.1