[Serusers] Bug in new_hash2() function [patch]

Maxim Sobolev sobomax at portaone.com
Sun Feb 9 20:36:31 CET 2003


There is a bug in ser, which results in different hashes to be
generated if some of the fields participating in hash generation has
extra spaces before value in reply that were not present in request,

 From: <vasia_pupkin at>

 From:  <vasia_pupkin at>

This leads to matching failure and as a result causes useless
retransmition, if tm module is used. For example, Vovida's SIP stack
is found to be guilty in inserting extra spaces into reply's headers
(which isn't really prohibited by the RFC).

Attached little patch should fix the problem. It would be nice to have
it integrated into the next release.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-hash_func.c
Type: application/x-unknown-content-type-ultraedit.c
Size: 889 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20030209/5f9cdd2e/attachment.bin>

More information about the sr-users mailing list