summaryrefslogtreecommitdiffstats
path: root/usr.sbin/uhsoctl/uhsoctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/uhsoctl/uhsoctl.c')
-rw-r--r--usr.sbin/uhsoctl/uhsoctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/uhsoctl/uhsoctl.c b/usr.sbin/uhsoctl/uhsoctl.c
index 21b6220..92efed8 100644
--- a/usr.sbin/uhsoctl/uhsoctl.c
+++ b/usr.sbin/uhsoctl/uhsoctl.c
@@ -453,6 +453,7 @@ set_nameservers(struct ctx *ctx, const char *respath, int ns, ...)
free(ctx->ns[i]);
}
free(ctx->ns);
+ ctx->ns = NULL;
}
fd = open(respath, O_RDWR | O_CREAT | O_NOFOLLOW, 0666);
OpenPOWER on IntegriCloud