[Serusers] ser crashes
Jan Janak
J.Janak at sh.cvut.cz
Thu Feb 6 16:44:48 CET 2003
On 06-02 16:25, Klaus Darilion wrote:
> My experience is the following:
>
> Line 109 in t_msgbuilder.c:
>
> len += USER_AGENT_LEN + CRLF_LEN;
> ==> ser crashes when I send the special invite!
>
> *len += USER_AGENT_LEN + CRLF_LEN;
> ==> ser doesn't crash but logs this in /val/log/messages:
> Feb 6 15:48:24 obelix /usr/local/sbin/ser[6985]: ERROR:
> t_build_and_send_CANCEL: cannot allocate memory
>
>
> hope my explanation is a little bit clearer now:
> i also downloaded
> ftp://ftp.berlios.de/pub/ser/0.8.10/src/ser-0.8.10_src.tar.gz
> and this tarball contains: *len += USER_AGENT_LEN + CRLF_LEN;
>
That's another line, look at line 103:
len+=((hdr->body.s+hdr->body.len ) - hdr->name.s ) +
CRLF_LEN;
This should be changed to:
*len+=((hdr->body.s+hdr->body.len ) - hdr->name.s ) +
CRLF_LEN;
regards, Jan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20030206/f28d1aec/attachment.pgp>
More information about the sr-users
mailing list