swanctl: Clear config from memory

The 'secrets' section in the config file may contain passwords/PINs.
This commit is contained in:
Tobias Brunner
2021-10-04 11:30:03 +02:00
parent f3a5b54ab3
commit de442491d9
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ static int load_all(vici_conn_t *conn)
ret = load_conns_cfg(conn, format, cfg);
}
cfg->destroy(cfg);
cfg->destroy_clear(cfg);
return ret;
}
+1 -1
View File
@@ -345,7 +345,7 @@ static int load_authorities(vici_conn_t *conn)
ret = load_authorities_cfg(conn, format, cfg);
cfg->destroy(cfg);
cfg->destroy_clear(cfg);
return ret;
}
+1 -1
View File
@@ -462,7 +462,7 @@ static int load_conns(vici_conn_t *conn)
ret = load_conns_cfg(conn, format, cfg);
cfg->destroy(cfg);
cfg->destroy_clear(cfg);
return ret;
}
+1 -1
View File
@@ -990,7 +990,7 @@ static int load_creds(vici_conn_t *conn)
ret = load_creds_cfg(conn, format, cfg, clear, noprompt);
cfg->destroy(cfg);
cfg->destroy_clear(cfg);
return ret;
}
+1 -1
View File
@@ -285,7 +285,7 @@ static int load_pools(vici_conn_t *conn)
ret = load_pools_cfg(conn, format, cfg);
cfg->destroy(cfg);
cfg->destroy_clear(cfg);
return ret;
}