svn commit: samba r18252 - in
branches/SAMBA_4_0/source/rpc_server/samr: .
abartlet at samba.org
abartlet at samba.org
Fri Sep 8 05:10:11 GMT 2006
Author: abartlet
Date: 2006-09-08 05:10:10 +0000 (Fri, 08 Sep 2006)
New Revision: 18252
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18252
Log:
Make sure to NULL terminate these lists of attributes.
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c
Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c 2006-09-08 04:54:30 UTC (rev 18251)
+++ branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c 2006-09-08 05:10:10 UTC (rev 18252)
@@ -690,19 +690,22 @@
{
static const char * const attrs2[] = {"forceLogoff",
"comment",
- "modifiedCount"};
+ "modifiedCount",
+ NULL};
attrs = attrs2;
break;
}
case 3:
{
- static const char * const attrs2[] = {"forceLogoff"};
+ static const char * const attrs2[] = {"forceLogoff",
+ NULL};
attrs = attrs2;
break;
}
case 4:
{
- static const char * const attrs2[] = {"comment"};
+ static const char * const attrs2[] = {"comment",
+ NULL};
attrs = attrs2;
break;
}
@@ -715,7 +718,9 @@
}
case 8:
{
- static const char * const attrs2[] = { "modifiedCount", "creationTime", NULL };
+ static const char * const attrs2[] = { "modifiedCount",
+ "creationTime",
+ NULL };
attrs = attrs2;
break;
}
@@ -728,7 +733,8 @@
"modifiedCount",
"lockoutDuration",
"lockOutObservationWindow",
- "lockoutThreshold", NULL};
+ "lockoutThreshold",
+ NULL};
attrs = attrs2;
break;
}
@@ -736,13 +742,16 @@
{
static const char * const attrs2[] = { "lockoutDuration",
"lockOutObservationWindow",
- "lockoutThreshold", NULL};
+ "lockoutThreshold",
+ NULL};
attrs = attrs2;
break;
}
case 13:
{
- static const char * const attrs2[] = { "modifiedCount", "creationTime", NULL };
+ static const char * const attrs2[] = { "modifiedCount",
+ "creationTime",
+ NULL };
attrs = attrs2;
break;
}
More information about the samba-cvs
mailing list