[Kamailio-Devel] [ openser-Feature Requests-2202141 ] "strncmp" should not be used to match header names

Juha Heinanen jh at tutpro.com
Tue Oct 28 07:37:04 CET 2008


SourceForge.net writes:

 > sources/modules/peering/verify.c:       if (strncmp(hf->name.s,
 > "P-Request-Hash",

i fixed this one.

 > sources/msg_translator.c:               if (he &&
 > (strncmp(he->h_name, name->s, name->len)==0)) 
 > sources/msg_translator.c:                       if
 > (strncmp(he->h_aliases[i],name->s, name->len)==0)

these two don't compare header names.

-- juha



More information about the Devel mailing list