mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
s4:netlogon RPC - Fix up the error handling
This commit is contained in:
parent
1fb28b0204
commit
8b345ef19e
@ -1429,6 +1429,7 @@ static WERROR dcesrv_netr_DsRGetDCNameEx2(struct dcesrv_call_state *dce_call, TA
|
||||
ret = gendb_search_dn(sam_ctx, mem_ctx,
|
||||
domain_dn, &res, attrs);
|
||||
if (ret != 1) {
|
||||
return WERR_GENERAL_FAILURE;
|
||||
}
|
||||
|
||||
info = talloc(mem_ctx, struct netr_DsRGetDCNameInfo);
|
||||
@ -1603,9 +1604,6 @@ static WERROR dcesrv_netr_DsrEnumerateDomainTrusts(struct dcesrv_call_state *dce
|
||||
|
||||
ret = gendb_search_dn(sam_ctx, mem_ctx, NULL,
|
||||
&dom_res, dom_attrs);
|
||||
if (ret == -1) {
|
||||
return WERR_GENERAL_FAILURE;
|
||||
}
|
||||
if (ret != 1) {
|
||||
return WERR_GENERAL_FAILURE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user