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:
Dario Lombardo 2016-10-22 21:05:00 +02:00 committed by Michael Mann
parent 4f94dceee7
commit 8be90aa960
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}
}