summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-01-30 12:45:20 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-01-30 12:45:20 +0100
commitd9528c265b96a5a0f0c2e43ac74ab3921a2987e1 (patch)
tree265c6142f93d09e1992e80d0b2784650079517f7 /plugins/utils.h
parent67b472f9d1d29b9de5312c46f13ca4f5a656c4da (diff)
downloadmonitoring-plugins-d9528c2.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/utils.h')
0 files changed, 0 insertions, 0 deletions