hi_client_norm.c (snort-2.9.16.1) | : | hi_client_norm.c (snort-2.9.17) | ||
---|---|---|---|---|
skipping to change at line 143 | skipping to change at line 143 | |||
DEBUG_WRAP(DebugMessage(DEBUG_HTTPINSPECT, "HttpInspect: trimming co okie: %d to %d\n", | DEBUG_WRAP(DebugMessage(DEBUG_HTTPINSPECT, "HttpInspect: trimming co okie: %d to %d\n", | |||
cookie->cookie_end - cookie->cookie, this_cookie_len);); | cookie->cookie_end - cookie->cookie, this_cookie_len);); | |||
} | } | |||
/* update for the next one */ | /* update for the next one */ | |||
this_header_start = cookie->cookie_end; | this_header_start = cookie->cookie_end; | |||
cookie = cookie->next; | cookie = cookie->next; | |||
if (last_cookie && (last_cookie != first_cookie)) | if (last_cookie && (last_cookie != first_cookie)) | |||
{ | { | |||
free(last_cookie); | free(last_cookie); | |||
hi_stats.mem_used -= sizeof(COOKIE_PTR); | ||||
} | } | |||
last_cookie = cookie; | last_cookie = cookie; | |||
if (!cookie) | if (!cookie) | |||
{ | { | |||
this_header_len = raw_header + i_raw_header_len - this_header_start; | this_header_len = raw_header + i_raw_header_len - this_header_start; | |||
} | } | |||
else | else | |||
{ | { | |||
this_header_len = cookie->cookie - this_header_start; | this_header_len = cookie->cookie - this_header_start; | |||
} | } | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |