From 8be90aa96002219ff8feba171e66d16655dc18bb Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Sat, 22 Oct 2016 21:05:00 +0200 Subject: [PATCH] ajp13: use ws_strtoi function. Change-Id: Ibe85cbb993eba8e76ed6c645609e9cea114a6c9d Reviewed-on: https://code.wireshark.org/review/18399 Petri-Dish: Dario Lombardo Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- epan/dissectors/packet-ajp13.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/epan/dissectors/packet-ajp13.c b/epan/dissectors/packet-ajp13.c index 921bf87d27..c8c4d64bb5 100644 --- a/epan/dissectors/packet-ajp13.c +++ b/epan/dissectors/packet-ajp13.c @@ -29,6 +29,8 @@ #include #include "packet-tcp.h" +#include + 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; } }