svn commit: samba r11991 - in
branches/SAMBA_4_0/source/auth/gensec: .
abartlet at samba.org
abartlet at samba.org
Thu Dec 1 04:58:17 GMT 2005
Author: abartlet
Date: 2005-12-01 04:58:15 +0000 (Thu, 01 Dec 2005)
New Revision: 11991
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11991
Log:
Null termainte the list of backends. (Makes it easier to walk the list).
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/auth/gensec/gensec.c
Changeset:
Modified: branches/SAMBA_4_0/source/auth/gensec/gensec.c
===================================================================
--- branches/SAMBA_4_0/source/auth/gensec/gensec.c 2005-12-01 04:55:18 UTC (rev 11990)
+++ branches/SAMBA_4_0/source/auth/gensec/gensec.c 2005-12-01 04:58:15 UTC (rev 11991)
@@ -871,14 +871,14 @@
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));
More information about the samba-cvs
mailing list