diff options
Diffstat (limited to 'source4')
-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)); |