diff options
| author | Roy Marples <roy@marples.name> | 2016-08-18 14:37:53 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-08-18 14:37:53 +0000 |
| commit | 60d7a50110b9eaee062f3b0d61f04cb89b4ca6e1 (patch) | |
| tree | e2bce7c7d6bf7270d0d2e680eec12499d8e172cc /dhcpcd.c | |
| parent | 47c18997b8475d24e2ef3b6a9d31f8d7ab2834f7 (diff) | |
| download | dhcpcd-60d7a50110b9eaee062f3b0d61f04cb89b4ca6e1.tar.xz | |
Check if we loaded options or not.
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |
