summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.y b/src/config.y
index e603e7c..989b174 100644
--- a/src/config.y
+++ b/src/config.y
@@ -519,7 +519,8 @@ forward: boolean { conf->forward = $1; }
include: TOK_PEER TOK_STRING maybe_as {
fastd_peer_config_new(ctx, conf);
- conf->peers->name = strdup($3->str);
+ if ($3)
+ conf->peers->name = strdup($3->str);
if (!fastd_read_config(ctx, conf, $2->str, true, depth))
YYERROR;