[EXIM] Simple bug in accept.c (2.02, Debian -3)

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Ian Jackson
Fecha:  
A: exim-users
Asunto: [EXIM] Simple bug in accept.c (2.02, Debian -3)
Clearly orcpt should be set before recipients_count is incremented.
I just came across this in the code while investigating another SEGV
problem which may be my own fault. I don't know whether this code is
being run in my copy, but it's obviously wrong.

Thanks,
Ian.

--- src/accept.c~    Mon Aug  3 11:27:33 1998
+++ src/accept.c    Thu Sep 10 00:30:10 1998
@@ -270,11 +270,12 @@
   }
 recipients_list[recipients_count].address = receiver;
 recipients_list[recipients_count].flags = flags;
-recipients_list[recipients_count++].pno = pno;


#ifdef SUPPORT_DSN
recipients_list[recipients_count].orcpt = orcpt;
#endif
+
+recipients_list[recipients_count++].pno = pno;
}



--
*** Exim information can be found at http://www.exim.org/ ***