diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-14 22:26:44 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-24 20:03:27 +0000 |
commit | 7b3dbbde04d52f9faeeba507b82bc4242b1efddd (patch) | |
tree | bc4cdf8df835569fba8e43e6665909ae288f598c /source4/rpc_server/netlogon | |
parent | 177aad556f4be8b6b82eec8fbf0bf4711ae32d2b (diff) | |
download | samba-7b3dbbde04d52f9faeeba507b82bc4242b1efddd.tar.gz samba-7b3dbbde04d52f9faeeba507b82bc4242b1efddd.tar.bz2 samba-7b3dbbde04d52f9faeeba507b82bc4242b1efddd.zip |
s4:dsdb - remove some calls of "samdb_msg_add_string" when we have talloc'ed strings
They can be substituted by "ldb_msg_add_string" if the string was already
talloc'ed.
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Oct 24 20:03:27 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/rpc_server/netlogon')
-rw-r--r-- | source4/rpc_server/netlogon/dcerpc_netlogon.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c index 680b766692..2f80c1bcce 100644 --- a/source4/rpc_server/netlogon/dcerpc_netlogon.c +++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c @@ -1431,16 +1431,12 @@ static NTSTATUS dcesrv_netr_LogonGetDomainInfo(struct dcesrv_call_state *dce_cal "dNSHostname", r->in.query->workstation_info->dns_hostname); - samdb_msg_add_string(sam_ctx, mem_ctx, new_msg, - "servicePrincipalName", - talloc_asprintf(mem_ctx, "HOST/%s", - r->in.computer_name) - ); - samdb_msg_add_string(sam_ctx, mem_ctx, new_msg, - "servicePrincipalName", - talloc_asprintf(mem_ctx, "HOST/%s", - r->in.query->workstation_info->dns_hostname) - ); + ldb_msg_add_string(new_msg, "servicePrincipalName", + talloc_asprintf(new_msg, "HOST/%s", + r->in.computer_name)); + ldb_msg_add_string(new_msg, "servicePrincipalName", + talloc_asprintf(new_msg, "HOST/%s", + r->in.query->workstation_info->dns_hostname)); } if (dsdb_replace(sam_ctx, new_msg, 0) != LDB_SUCCESS) { |