mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-26 04:27:25 +00:00
Thu May 22 07:34:11 EDT 2008 Pekka.Pessi@nokia.com
* http_tag_class.c: fixed klocwork issues git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8632 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
4ba0be7696
commit
d9d3d80fc5
@ -117,10 +117,13 @@ tagi_t *httptag_filter(tagi_t *dst,
|
|||||||
http_header_t const *h, **hh;
|
http_header_t const *h, **hh;
|
||||||
|
|
||||||
http = (http_t const *)src->t_value;
|
http = (http_t const *)src->t_value;
|
||||||
|
if (http == NULL)
|
||||||
|
return dst;
|
||||||
|
|
||||||
mc = (void *)http->http_common->h_class;
|
mc = (void *)http->http_common->h_class;
|
||||||
hh = (void *)msg_hclass_offset(mc, http, hc);
|
hh = (void *)msg_hclass_offset(mc, http, hc);
|
||||||
|
|
||||||
if (http == NULL ||
|
if (hh == NULL ||
|
||||||
(char *)hh >= ((char *)http + http->http_size) ||
|
(char *)hh >= ((char *)http + http->http_size) ||
|
||||||
(char *)hh < (char *)&http->http_request)
|
(char *)hh < (char *)&http->http_request)
|
||||||
return dst;
|
return dst;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user