summaryrefslogtreecommitdiffstats
path: root/src/config.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.y')
-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;