commit | 1cdc02868771ced6f3f8b5f8dc4725ceae68f842 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Fri Feb 05 10:29:29 2021 +0100 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Fri Feb 05 11:51:44 2021 +0100 |
tree | 8658b5771d53a85486b9d36ba1f41b4662663949 | |
parent | f09612289f4a6e358524df385473323ea4254883 [diff] |
CLEANUP: http-htx: Set buffer area to NULL instead of malloc(0) During error files conversion to HTX message, in http_str_to_htx(), if a file is empty, the corresponding buffer's area is initialized with a malloc(0) and its size is set to 0. There is no problem here. The behaviour is totally defined. But it is not really intuitive. Instead, we can simply set the area to NULL. This patch should fix the issue #1022.