Skip to content
Permalink
Browse files

altsvc_out: check the return code from Curl_gmtime

Pointed out by Coverity, CID 1442956.

Closes #3640
  • Loading branch information...
bagder committed Mar 3, 2019
1 parent 98441f3 commit 2591a491aa7cc736dc1751b7b1a4502eac5edf9e
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/altsvc.c
@@ -216,7 +216,9 @@ static CURLcode altsvc_load(struct altsvcinfo *asi, const char *file)
static CURLcode altsvc_out(struct altsvc *as, FILE *fp)
{
struct tm stamp;
Curl_gmtime(as->expires, &stamp);
CURLcode result = Curl_gmtime(as->expires, &stamp);
if(result)
return result;

fprintf(fp,
"%s %s %u "

0 comments on commit 2591a49

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.