diff --git a/src/http_htx.c b/src/http_htx.c index a42e296ee..bb3d8d0f0 100644 --- a/src/http_htx.c +++ b/src/http_htx.c @@ -904,7 +904,7 @@ int http_str_to_htx(struct buffer *buf, struct ist raw, char **errmsg) b_reset(buf); if (!raw.len) { buf->size = 0; - buf->area = malloc(raw.len); + buf->area = NULL; return 1; }