summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libnet/libnet.c')
-rw-r--r--source4/libnet/libnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet.c b/source4/libnet/libnet.c
index 963e824497..604a2aaca4 100644
--- a/source4/libnet/libnet.c
+++ b/source4/libnet/libnet.c
@@ -54,7 +54,7 @@ struct libnet_context *libnet_context_init(struct event_context *ev)
for (nr_i = 0; nr_i < nr_count; nr_i++) {
ctx->name_res_methods[nr_i] = talloc_strdup(ctx, nr_methods[nr_i]);
}
- ctx->name_res_methods[nr_count+1] = NULL;
+ ctx->name_res_methods[nr_i] = NULL;
return ctx;
}