summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index 6f0b3cf..0b5450d 100644
--- a/src/config.c
+++ b/src/config.c
@@ -249,12 +249,14 @@ void fastd_configure(fastd_context *ctx, fastd_config *conf, int argc, char *con
conf->peers = current_peer;
current_peer->enabled = true;
+ current_peer->address.sa.sa_family = AF_UNSPEC;
+ current_peer->key = NULL;
+ current_peer->protocol_config = NULL;
+
memset(&current_peer->address, 0, sizeof(fastd_peer_address));
- if (strcmp(arg, "float") == 0) {
- current_peer->address.sa.sa_family = AF_UNSPEC;
+ if (strcmp(arg, "float") == 0)
continue;
- }
if (arg[0] == '[') {
charptr = strchr(arg, ']');