diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-03 04:23:46 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-03 04:23:46 +0200 |
commit | 171dd6a58b89a5a7cdb55711515bec532a8f1bc6 (patch) | |
tree | d706f8179f6646ab3e205034dde5d1b0706550dd /src/peer.c | |
parent | 89208e7de1c477c8a49b559b36c3177ab1ff5645 (diff) | |
download | fastd-171dd6a58b89a5a7cdb55711515bec532a8f1bc6.tar fastd-171dd6a58b89a5a7cdb55711515bec532a8f1bc6.zip |
Save source dirs with peer configs
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -83,6 +83,8 @@ fastd_peer_config* fastd_peer_config_new(fastd_context *ctx, fastd_config *conf) memset(&peer->address, 0, sizeof(fastd_peer_address)); + peer->config_source_dir = NULL; + peer->name = NULL; peer->key = NULL; peer->protocol_config = NULL; @@ -96,6 +98,7 @@ fastd_peer_config* fastd_peer_config_new(fastd_context *ctx, fastd_config *conf) void fastd_peer_config_delete(fastd_context *ctx, fastd_config *conf) { fastd_peer_config *peer = conf->peers, *next = peer->next; + free(peer->config_source_dir); free(peer->name); free(peer->key); free(peer); |