diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-04-13 15:45:29 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-04-13 15:45:29 +0200 |
commit | 84c901a619ad4b20c36b84c435fb869e8374bd8a (patch) | |
tree | 13c934b530ea5423b69175207c7e255555bc48c0 /source4/cldap_server | |
parent | 34ff1c6944a56365390b252f516b6d3aafc8ac50 (diff) | |
download | samba-84c901a619ad4b20c36b84c435fb869e8374bd8a.tar.gz samba-84c901a619ad4b20c36b84c435fb869e8374bd8a.tar.bz2 samba-84c901a619ad4b20c36b84c435fb869e8374bd8a.zip |
s4:"samdb_server_site_name" uses - proof for out of memory
Diffstat (limited to 'source4/cldap_server')
-rw-r--r-- | source4/cldap_server/netlogon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c index fc9cafd89d..139c1cafdc 100644 --- a/source4/cldap_server/netlogon.c +++ b/source4/cldap_server/netlogon.c @@ -250,7 +250,8 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx, } #endif - pdc_name = talloc_asprintf(mem_ctx, "\\\\%s", lp_netbios_name(lp_ctx)); + pdc_name = talloc_asprintf(mem_ctx, "\\\\%s", + lp_netbios_name(lp_ctx)); NT_STATUS_HAVE_NO_MEMORY(pdc_name); domain_uuid = samdb_result_guid(dom_res->msgs[0], "objectGUID"); dns_domain = lp_dnsdomain(lp_ctx); @@ -263,6 +264,7 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx, NT_STATUS_HAVE_NO_MEMORY(pdc_dns_name); flatname = lp_sam_name(lp_ctx); server_site = samdb_server_site_name(sam_ctx, mem_ctx); + NT_STATUS_HAVE_NO_MEMORY(server_site); /* FIXME: Hardcoded site name */ client_site = "Default-First-Site-Name"; load_interfaces(mem_ctx, lp_interfaces(lp_ctx), &ifaces); |