diff options
Diffstat (limited to 'credential.c')
| -rw-r--r-- | credential.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/credential.c b/credential.c index f32011343f..e6417bf880 100644 --- a/credential.c +++ b/credential.c @@ -1,6 +1,8 @@ #include "cache.h" +#include "abspath.h" #include "config.h" #include "credential.h" +#include "gettext.h" #include "string-list.h" #include "run-command.h" #include "url.h" @@ -23,6 +25,7 @@ void credential_clear(struct credential *c) free(c->username); free(c->password); string_list_clear(&c->helpers, 0); + strvec_clear(&c->wwwauth_headers); credential_init(c); } @@ -280,6 +283,8 @@ void credential_write(const struct credential *c, FILE *fp) credential_write_item(fp, "password_expiry_utc", s, 0); free(s); } + for (size_t i = 0; i < c->wwwauth_headers.nr; i++) + credential_write_item(fp, "wwwauth[]", c->wwwauth_headers.v[i], 0); } static int run_credential_helper(struct credential *c, |
