1
0
Fork 0

Minor relaxation of Content-ID comparison in MM7 parser

This commit is contained in:
bagyenda 2006-12-20 10:08:54 +00:00
parent c057093761
commit 1b9c2dc2ad
3 changed files with 5 additions and 3 deletions

View File

@ -283,7 +283,9 @@ MSoapMsg_t *mm7_parse_soap(List *headers, Octstr *body)
char *cid = (y && octstr_get_char(y, 0) == '<') ? octstr_get_cstr(y) + 1 : (y ? octstr_get_cstr(y) : "");
int cid_len = (y && octstr_get_char(y, 0) == '<') ? octstr_len(y) - 2 : (y ? octstr_len(y) : 0);
if (y && strncmp(loc, cid, cid_len) == 0)
if (y &&
(strncmp(loc, cid, cid_len) == 0 ||
octstr_compare(y, cloc) == 0)) /* XXX seems wrong, but some MMC out there behave badly, so we support it */
c = mime_entity_duplicate(x);
if (y)

View File

@ -487,7 +487,7 @@ static void free_clientInfo(MmsHTTPClientInfo *h, int freeh)
{
debug("free info", 0,
" entered free_clientinfo %d, ip=%d", freeh, (int)h->ip);
" entered free_clientinfo %d, ip=%ld", freeh, (long)h->ip);
if (h->ip)
octstr_destroy(h->ip);

View File

@ -1986,7 +1986,7 @@ static void free_clientInfo(MmsHTTPClientInfo *h, int freeh)
{
debug("free info", 0,
" entered free_clientinfo %d, ip=%d", freeh, (int)h->ip);
" entered free_clientinfo %d, ip=%ld", freeh, (long)h->ip);
if (h->ip)
octstr_destroy(h->ip);