aboutsummaryrefslogtreecommitdiff
path: root/lib/altsvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/altsvc.c')
-rw-r--r--lib/altsvc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/altsvc.c b/lib/altsvc.c
index 97cdc7b8a..64ca2655d 100644
--- a/lib/altsvc.c
+++ b/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 "