On Fri, Mar 15, 2013 at 02:07:47PM +0200, Chrysovaladis Datsios wrote: > > W/o looking at your code in details, why isn't this returning > > 'CURLE_OUT_OF_MEMORY'? > > --gv > > According to Dan Fandrich: > --------------------------------------- > And I'm not sure CURLE_OUT_OF_MEMORY is the > best error code here--the system is technically not out of memory. Maybe > CURLE_BAD_FUNCTION_ARGUMENT?
That was in reference to the check if the given headers were too large to fit into the fixed-size buffer. If a malloc() fails, clearly the system is out of memory. >>> Dan ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
