From d957ed4941d7f90eecc294490adee8055ab251f3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 5 Jun 2020 14:04:22 +0200 Subject: trailers: switch h1-trailer logic to use dynbuf In the continued effort to remove "manual" realloc schemes. Closes #5524 --- lib/urldata.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/urldata.h') diff --git a/lib/urldata.h b/lib/urldata.h index d3cc5356e..1882914e0 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1064,10 +1064,8 @@ struct connectdata { /* data used for the asynch name resolve callback */ struct Curl_async async; - /* These three are used for chunked-encoding trailer support */ - char *trailer; /* allocated buffer to store trailer in */ - int trlMax; /* allocated buffer size */ - int trlPos; /* index of where to store data */ + /* for chunked-encoded trailer */ + struct dynbuf trailer; union { struct ftp_conn ftpc; -- cgit v1.2.3