mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
r14439: fix warnings
metze
This commit is contained in:
parent
83d2978da1
commit
3b712b70f0
@ -220,12 +220,12 @@ void cldapd_netlogon_request(struct cldap_socket *cldap,
|
|||||||
if (t->operation != LDB_OP_EQUALITY) goto failed;
|
if (t->operation != LDB_OP_EQUALITY) goto failed;
|
||||||
if (strcasecmp(t->u.equality.attr, "DnsDomain") == 0) {
|
if (strcasecmp(t->u.equality.attr, "DnsDomain") == 0) {
|
||||||
domain = talloc_strndup(tmp_ctx,
|
domain = talloc_strndup(tmp_ctx,
|
||||||
t->u.equality.value.data,
|
(const char *)t->u.equality.value.data,
|
||||||
t->u.equality.value.length);
|
t->u.equality.value.length);
|
||||||
}
|
}
|
||||||
if (strcasecmp(t->u.equality.attr, "Host") == 0) {
|
if (strcasecmp(t->u.equality.attr, "Host") == 0) {
|
||||||
host = talloc_strndup(tmp_ctx,
|
host = talloc_strndup(tmp_ctx,
|
||||||
t->u.equality.value.data,
|
(const char *)t->u.equality.value.data,
|
||||||
t->u.equality.value.length);
|
t->u.equality.value.length);
|
||||||
}
|
}
|
||||||
if (strcasecmp(t->u.equality.attr, "DomainGuid") == 0) {
|
if (strcasecmp(t->u.equality.attr, "DomainGuid") == 0) {
|
||||||
@ -239,12 +239,12 @@ void cldapd_netlogon_request(struct cldap_socket *cldap,
|
|||||||
}
|
}
|
||||||
if (strcasecmp(t->u.equality.attr, "DomainSid") == 0) {
|
if (strcasecmp(t->u.equality.attr, "DomainSid") == 0) {
|
||||||
domain_sid = talloc_strndup(tmp_ctx,
|
domain_sid = talloc_strndup(tmp_ctx,
|
||||||
t->u.equality.value.data,
|
(const char *)t->u.equality.value.data,
|
||||||
t->u.equality.value.length);
|
t->u.equality.value.length);
|
||||||
}
|
}
|
||||||
if (strcasecmp(t->u.equality.attr, "User") == 0) {
|
if (strcasecmp(t->u.equality.attr, "User") == 0) {
|
||||||
user = talloc_strndup(tmp_ctx,
|
user = talloc_strndup(tmp_ctx,
|
||||||
t->u.equality.value.data,
|
(const char *)t->u.equality.value.data,
|
||||||
t->u.equality.value.length);
|
t->u.equality.value.length);
|
||||||
}
|
}
|
||||||
if (strcasecmp(t->u.equality.attr, "NtVer") == 0 &&
|
if (strcasecmp(t->u.equality.attr, "NtVer") == 0 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user