summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-12-01 04:58:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:56 -0500
commit759e40fb4a7dd721f4b7485e5191b5063f72345a (patch)
tree2308f1776527074525cacb288f21d55ff0f5f1c9
parent20f0e18854f39bf6291e44cb7bc1f78450ee484e (diff)
downloadsamba-759e40fb4a7dd721f4b7485e5191b5063f72345a.tar.gz
samba-759e40fb4a7dd721f4b7485e5191b5063f72345a.tar.bz2
samba-759e40fb4a7dd721f4b7485e5191b5063f72345a.zip
r11991: Null termainte the list of backends. (Makes it easier to walk the list).
Andrew Bartlett (This used to be commit fc4202dea88a72de061cb2e1caa7847fae37018f)
-rw-r--r--source4/auth/gensec/gensec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c
index 3818965a6f..a23846f3ad 100644
--- a/source4/auth/gensec/gensec.c
+++ b/source4/auth/gensec/gensec.c
@@ -871,14 +871,14 @@ NTSTATUS gensec_register(const void *_ops)
generic_security_ops = realloc_p(generic_security_ops,
const struct gensec_security_ops *,
- gensec_num_backends+1);
+ gensec_num_backends+2);
if (!generic_security_ops) {
smb_panic("out of memory in gensec_register");
}
generic_security_ops[gensec_num_backends] = ops;
-
gensec_num_backends++;
+ generic_security_ops[gensec_num_backends] = NULL;
DEBUG(3,("GENSEC backend '%s' registered\n",
ops->name));