Sendmail 5.61 (and newer?) logging bug (minor)

Lyle Seaman lws at comm.wang.com
Wed May 8 01:55:05 AEST 1991


Somewhere around line 408 of deliver.c (it's hard for me to 
say, I've made some local mods without keeping good track :-()
there is this segment of code:
			else {
				*t++ = ',';
				for (p = to->q_paddr; *p; *t++ = *p++);
			}

It fails to null-terminate the list of recipients.  This is usually
harmless.  In cases where one of the recipients is unreachable, 
the log line has extra text after the last recipient (usually part
of a name) which caused some problems for a mail flow summarizer
I wrote.  Add this line:
				*t='\0';

and get:
			else {
				*t++ = ',';
				for (p = to->q_paddr; *p; *t++ = *p++);
				*t='\0';/* 910506lws at wang.com */
			}

-- 
Lyle 	508 967 2322  		
lws at wang.com 	
Wang Labs, Lowell, MA, USA 	



More information about the Comp.bugs.4bsd.ucb-fixes mailing list