#790 closing stdout on fatal error in Curl_cookie_output

closed-fixed
libcurl (354)
5
2013-06-21
2008-12-03
Paweł Kierski
No

In cookie.c in function Curl_cookie_output in case of fatal error (condition format_ptr == NULL, line 1004, version 7.19.2) fclose is performed without cheking use_stdout flag. So in case error stdout FILE* handle can be closed.

Discussion

  • Thanks for the report, this problem is now fixed in CVS!

     
    • status: open --> closed-fixed