Merge branch 'vendor/DIFFUTILS'
[dragonfly.git] / usr.sbin / sendmail / main.c.patch
1 $DragonFly: src/usr.sbin/sendmail/main.c.patch,v 1.1 2008/02/18 19:47:32 dillon Exp $
2
3 Index: main.c
4 ===================================================================
5 RCS file: /cvs/src/contrib/sendmail-8.14/sendmail/main.c,v
6 retrieving revision 1.1.1.2
7 diff -u -p -r1.1.1.2 main.c
8 --- main.c      5 Nov 2007 01:37:45 -0000       1.1.1.2
9 +++ main.c      18 Feb 2008 19:30:27 -0000
10 @@ -2543,9 +2543,12 @@                                               NULL), &forged);
11                 macdefine(&BlankEnvelope.e_macro, A_TEMP, '_', authinfo);
12  
13                 /* at this point we are in a child: reset state */
14 -               sm_rpool_free(MainEnvelope.e_rpool);
15 -               (void) newenvelope(&MainEnvelope, &MainEnvelope,
16 -                                  sm_rpool_new_x(NULL));
17 +               {
18 +                       SM_RPOOL_T *opool = MainEnvelope.e_rpool;
19 +                       (void) newenvelope(&MainEnvelope, &MainEnvelope,
20 +                                          sm_rpool_new_x(NULL));
21 +                       sm_rpool_free(opool);
22 +               }
23         }
24  
25         if (LogLevel > 9)