Patch for 1.71

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Vladimir Litovka, exim-users
CC: unix-support
Új témák: A few problems
Tárgy: Patch for 1.71
Exim 1.71 crashes (SEGV) if called with the address testing option -bt
and an address that is matched by an aliasfile director that has got the
errors_to option set. The patch below fixes this. The same patch can be
used on Exim 1.70.

-- 
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714



*** exim-1.71/src/directors/aliasfile.c     Tue Sep  9 14:07:24 1997
--- src/directors/aliasfile.c        Mon Sep 15 09:56:23 1997
***************
*** 369,384 ****
    /* While verifying, set the sender address to null, because that's what
    it will be when sending an error message, and there are now configuration
    options that control the running of directors and routers by checking
!   the sender address. */


    if (verify) errors_to = s; else
      {
      char *snew;
!     int save1 = sender_address[0];
!     sender_address[0] = 0;
      if (verify_address(s, NULL, NULL, &snew, vopt_is_recipient | vopt_local)
        == OK) errors_to = snew;
!     sender_address[0] = save1;
      }
    }


--- 369,389 ----
    /* While verifying, set the sender address to null, because that's what
    it will be when sending an error message, and there are now configuration
    options that control the running of directors and routers by checking
!   the sender address. When testing an address, there may not be a sender
!   address. */


    if (verify) errors_to = s; else
      {
      char *snew;
!     int save1 = 0;
!     if (sender_address != NULL)
!       {
!       save1 = sender_address[0];
!       sender_address[0] = 0;
!       }
      if (verify_address(s, NULL, NULL, &snew, vopt_is_recipient | vopt_local)
        == OK) errors_to = snew;
!     if (sender_address != NULL) sender_address[0] = save1;
      }
    }




--
* This is sent by the exim-users mailing list.  To unsubscribe send a
    mail with subject "unsubscribe" to exim-users-request@???
* Exim information can be found at http://www.exim.org/