[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: smtp segfaulting
On Tue, Nov 25, 2003 at 09:03:17PM +0300, Eugene Crosser wrote:
> ... at transports/smtp/getmxrr.c line 792:
>
> *cp++ = *fmt;
>
> apparently the problem is around the line 749. SS->remotemsg is
> non-zero. But all entries in SS->remotemsgs[] array are nulls.
Hmm.. Maybe, maybe not. I did 'make clean; make' in that directory
and the problem disappeared in my case.
(Mantra: always 'make clean' after 'cvs update -dAP' ...)
> Probably this block never sets the pointers:
>
> if (SS->prevcmdstate >= SMTPSTATE99) /* magic limit.. */
> SS->remotemsgs[(int)SS->cmdstate] = cp = SS->remotemsg;
> if (SS->cmdstate > SS->prevcmdstate)
> SS->remotemsgs[(int)SS->cmdstate] = cp;
>
> nevertheless in the next lines
>
> if (!append)
> cp = SS->remotemsgs[(int)SS->cmdstate];
>
> and voila! cp is null.
>
> Eugene
--
/Matti Aarnio <mea@nic.funet.fi>
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi