Source-Changes-HG archive

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

[src/netbsd-2]: src/gnu/dist/sendmail/sendmail Apply patch (requested by adri...



details:   https://anonhg.NetBSD.org/src/rev/c73ca9df56f3
branches:  netbsd-2
changeset: 564513:c73ca9df56f3
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Sep 06 06:59:45 2006 +0000

description:
Apply patch (requested by adrianp in ticket #10689):
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 b6d037827fe8 -r c73ca9df56f3 gnu/dist/sendmail/sendmail/main.c
--- a/gnu/dist/sendmail/sendmail/main.c Sun Sep 03 00:34:36 2006 +0000
+++ b/gnu/dist/sendmail/sendmail/main.c Wed Sep 06 06:59:45 2006 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: main.c,v 1.13 2004/03/25 19:14:31 atatat Exp $ */
+/* $NetBSD: main.c,v 1.13.4.1 2006/09/06 06:59:45 tron Exp $ */
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: main.c,v 1.13 2004/03/25 19:14:31 atatat Exp $");
+__RCSID("$NetBSD: main.c,v 1.13.4.1 2006/09/06 06:59:45 tron Exp $");
 #endif
 
 /*
@@ -2916,6 +2916,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