diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-12-01 04:58:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:56 -0500 |
commit | 759e40fb4a7dd721f4b7485e5191b5063f72345a (patch) | |
tree | 2308f1776527074525cacb288f21d55ff0f5f1c9 /source4/auth | |
parent | 20f0e18854f39bf6291e44cb7bc1f78450ee484e (diff) | |
download | samba-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)
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/gensec/gensec.c | 4 |
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)); |