[Serdev] cpl-c build_userhost causes lookup failure?
Bogdan-Andrei IANCU
iancu at fokus.fraunhofer.de
Mon May 24 10:49:13 UTC 2004
Hi Richard,
Thanks a lot for reporting the problem. The proper fix is actually not
tto remove that line, but to replace it with "uh->s[uh->len] = 0;" ->
the uri will stil be \0 terminated, but the len will be also correct.
Regards,
Bogdan
Richard wrote:
>Hi,
>
>I have a problem to enable lookup registration. Lookup
>node can't find the user in the location table. Some
>debug found out in build_userhost for
>cpl_invoke_script in cpl.c, the intr->user has an
>extra '\0' in the end and len is one longer. For
>example, "1 at a.b" has a len of 6 in intr->user and 5 in
>location table. It caused the get_urecord failed to
>find any record in the location table. The removal of
>line 474 "uh->s[uh->len++] = 0;" in cpl.c solves the
>problem.
>
>Is my understanding correct?
>
>Thanks,
>Richard
>
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Domains – Claim yours for only $14.70/year
>http://smallbusiness.promotions.yahoo.com/offer
>
>_______________________________________________
>Serdev mailing list
>serdev at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serdev
>
>
>
More information about the Serdev
mailing list