summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-07-09 01:53:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:25 -0500
commit5c87688051bc898e4a606f5ce1654eed0c3bb5d7 (patch)
tree8df33a9811c533f01364ba5fe17c165f5607949c
parent3191ed9ae97f7cb6da9dd1034ec416e6e892150a (diff)
downloadsamba-5c87688051bc898e4a606f5ce1654eed0c3bb5d7.tar.gz
samba-5c87688051bc898e4a606f5ce1654eed0c3bb5d7.tar.bz2
samba-5c87688051bc898e4a606f5ce1654eed0c3bb5d7.zip
r8246: Don't try and set the element after the end off the array to NULL.
Andrew Bartlett (This used to be commit 44338b2852bff36d642ea0296d480d384e88fbcb)
-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;
}