Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3-0]: src/gnu/dist/sendmail/sendmail Apply patch (requested by ad...



details:   https://anonhg.NetBSD.org/src/rev/7f7a8a605cea
branches:  netbsd-3-0
changeset: 579288:7f7a8a605cea
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Sep 01 15:14:10 2006 +0000

description:
Apply patch (requested by adrianp in ticket #1495):
Fixes potential DoS attack with sendmail(8).

diffstat:

 gnu/dist/sendmail/sendmail/main.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r e16644ddc6b9 -r 7f7a8a605cea gnu/dist/sendmail/sendmail/main.c
--- a/gnu/dist/sendmail/sendmail/main.c Tue Aug 29 09:39:57 2006 +0000
+++ b/gnu/dist/sendmail/sendmail/main.c Fri Sep 01 15:14:10 2006 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: main.c,v 1.14 2005/03/15 02:14:17 atatat Exp $ */
+/* $NetBSD: main.c,v 1.14.4.1 2006/09/01 15:14:10 tron Exp $ */
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: main.c,v 1.14 2005/03/15 02:14:17 atatat Exp $");
+__RCSID("$NetBSD: main.c,v 1.14.4.1 2006/09/01 15:14:10 tron Exp $");
 #endif
 
 /*
@@ -2899,6 +2899,9 @@
                                dropenvelope(CurEnv, true, false);
                                sm_rpool_free(CurEnv->e_rpool);
                                CurEnv->e_rpool = NULL;
+
+                               /* this may have pointed to the rpool */
+                               CurEnv->e_to = NULL;
                        }
                        else
                                poststats(StatFile);



Home | Main Index | Thread Index | Old Index