forked from osmocom/wireshark
ajp13: use ws_strtoi function.
Change-Id: Ibe85cbb993eba8e76ed6c645609e9cea114a6c9d Reviewed-on: https://code.wireshark.org/review/18399 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
4f94dceee7
commit
8be90aa960
|
@ -29,6 +29,8 @@
|
|||
#include <epan/proto_data.h>
|
||||
#include "packet-tcp.h"
|
||||
|
||||
#include <wsutil/strtoi.h>
|
||||
|
||||
void proto_register_ajp13(void);
|
||||
void proto_reg_handoff_ajp13(void);
|
||||
|
||||
|
@ -679,8 +681,7 @@ display_req_forward(tvbuff_t *tvb, packet_info *pinfo,
|
|||
pos+=hval_len+2;
|
||||
}
|
||||
|
||||
if (cl) {
|
||||
cl = atoi(hval);
|
||||
if (cl && ws_strtou32(hval, NULL, &cl)) {
|
||||
cd->content_length = cl;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue