diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-01-30 11:45:20 (GMT) |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-01-30 11:45:20 (GMT) |
commit | d9528c265b96a5a0f0c2e43ac74ab3921a2987e1 (patch) | |
tree | 265c6142f93d09e1992e80d0b2784650079517f7 /plugins/netutils.c | |
parent | 67b472f9d1d29b9de5312c46f13ca4f5a656c4da (diff) | |
download | monitoring-plugins-d9528c265b96a5a0f0c2e43ac74ab3921a2987e1.tar.gz |
check_http: Fix memory reallocation error in chunk decoding logic
This patch should fix an error with the way memory reallocation was
used, which resulted in "realloc(): invalid next size".
It is not completely clear to me as to what caused this problem, but
apparently one can not depend handing a pointer to "realloc(3)" and
expect that it still works afterwards, but one should/must use the one
returned by the function.
Also this patch replaces a variable which was used to remember the
position in the array by just computing that from the current values.
Diffstat (limited to 'plugins/netutils.c')
0 files changed, 0 insertions, 0 deletions