summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-08-18 14:37:53 +0000
committerRoy Marples <roy@marples.name>2016-08-18 14:37:53 +0000
commit60d7a50110b9eaee062f3b0d61f04cb89b4ca6e1 (patch)
treee2bce7c7d6bf7270d0d2e680eec12499d8e172cc /dhcpcd.c
parent47c18997b8475d24e2ef3b6a9d31f8d7ab2834f7 (diff)
downloaddhcpcd-60d7a50110b9eaee062f3b0d61f04cb89b4ca6e1.tar.xz
Check if we loaded options or not.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 2bb94f53..7535c816 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1135,7 +1135,8 @@ reload_config(struct dhcpcd_ctx *ctx)
struct if_options *ifo;
free_globals(ctx);
- ifo = read_config(ctx, NULL, NULL, NULL);
+ if ((ifo = read_config(ctx, NULL, NULL, NULL)) == NULL)
+ return;
add_options(ctx, NULL, ifo, ctx->argc, ctx->argv);
/* We need to preserve these two options. */
if (ctx->options & DHCPCD_MASTER)