Permalink
Browse files

avoid potential AV in curl.slist_append

  • Loading branch information...
pavel.mash
pavel.mash committed Nov 26, 2018
1 parent b4ea7ad commit 49fd3dff7c49ed8f325ab6d83814f4c99a2029e5
Showing with 1 addition and 1 deletion.
  1. +1 −1 SynCrtSock.pas
@@ -11473,7 +11473,7 @@ procedure TCurlHTTP.InternalCreateRequest(const method, aURL: SockString);
fIn.Method := UpperCase(method);
if fIn.Method = 'GET' then
fIn.Headers := nil else // disable Expect 100 continue in libcurl
fIn.Headers := curl.slist_append(fIn.Headers,'Expect:');
fIn.Headers := curl.slist_append(nil,'Expect:');
Finalize(fOut);
end;

0 comments on commit 49fd3df

Please sign in to comment.