Skip to content

Commit

Permalink
fixup try using 'expires' as a curl_off_t
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Mar 8, 2021
1 parent c89b936 commit 1e5890b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hsts.c
Expand Up @@ -280,7 +280,7 @@ static CURLcode hsts_push(struct Curl_easy *data,
e.namelen = strlen(sts->host);
e.includeSubDomains = sts->includeSubDomains;

result = Curl_gmtime(sts->expires, &stamp);
result = Curl_gmtime((time_t)sts->expires, &stamp);
if(result)
return result;

Expand Down
2 changes: 1 addition & 1 deletion lib/hsts.h
Expand Up @@ -35,7 +35,7 @@ struct stsentry {
struct Curl_llist_element node;
const char *host;
bool includeSubDomains;
time_t expires; /* the timestamp of this entry's expiry */
curl_off_t expires; /* the timestamp of this entry's expiry */
};

/* The HSTS cache. Needs to be able to tailmatch host names. */
Expand Down

0 comments on commit 1e5890b

Please sign in to comment.