mirror of
https://github.com/samba-team/samba.git
synced 2025-09-13 17:44:21 +03:00
r18252: Make sure to NULL terminate these lists of attributes.
Andrew Bartlett
(This used to be commit 8cddcdb7c7
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
77d27a4635
commit
f093527819
@@ -690,19 +690,22 @@ static NTSTATUS samr_QueryDomainInfo(struct dcesrv_call_state *dce_call, TALLOC_
|
|||||||
{
|
{
|
||||||
static const char * const attrs2[] = {"forceLogoff",
|
static const char * const attrs2[] = {"forceLogoff",
|
||||||
"comment",
|
"comment",
|
||||||
"modifiedCount"};
|
"modifiedCount",
|
||||||
|
NULL};
|
||||||
attrs = attrs2;
|
attrs = attrs2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 3:
|
case 3:
|
||||||
{
|
{
|
||||||
static const char * const attrs2[] = {"forceLogoff"};
|
static const char * const attrs2[] = {"forceLogoff",
|
||||||
|
NULL};
|
||||||
attrs = attrs2;
|
attrs = attrs2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 4:
|
case 4:
|
||||||
{
|
{
|
||||||
static const char * const attrs2[] = {"comment"};
|
static const char * const attrs2[] = {"comment",
|
||||||
|
NULL};
|
||||||
attrs = attrs2;
|
attrs = attrs2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -715,7 +718,9 @@ static NTSTATUS samr_QueryDomainInfo(struct dcesrv_call_state *dce_call, TALLOC_
|
|||||||
}
|
}
|
||||||
case 8:
|
case 8:
|
||||||
{
|
{
|
||||||
static const char * const attrs2[] = { "modifiedCount", "creationTime", NULL };
|
static const char * const attrs2[] = { "modifiedCount",
|
||||||
|
"creationTime",
|
||||||
|
NULL };
|
||||||
attrs = attrs2;
|
attrs = attrs2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -728,7 +733,8 @@ static NTSTATUS samr_QueryDomainInfo(struct dcesrv_call_state *dce_call, TALLOC_
|
|||||||
"modifiedCount",
|
"modifiedCount",
|
||||||
"lockoutDuration",
|
"lockoutDuration",
|
||||||
"lockOutObservationWindow",
|
"lockOutObservationWindow",
|
||||||
"lockoutThreshold", NULL};
|
"lockoutThreshold",
|
||||||
|
NULL};
|
||||||
attrs = attrs2;
|
attrs = attrs2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -736,13 +742,16 @@ static NTSTATUS samr_QueryDomainInfo(struct dcesrv_call_state *dce_call, TALLOC_
|
|||||||
{
|
{
|
||||||
static const char * const attrs2[] = { "lockoutDuration",
|
static const char * const attrs2[] = { "lockoutDuration",
|
||||||
"lockOutObservationWindow",
|
"lockOutObservationWindow",
|
||||||
"lockoutThreshold", NULL};
|
"lockoutThreshold",
|
||||||
|
NULL};
|
||||||
attrs = attrs2;
|
attrs = attrs2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 13:
|
case 13:
|
||||||
{
|
{
|
||||||
static const char * const attrs2[] = { "modifiedCount", "creationTime", NULL };
|
static const char * const attrs2[] = { "modifiedCount",
|
||||||
|
"creationTime",
|
||||||
|
NULL };
|
||||||
attrs = attrs2;
|
attrs = attrs2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user