mirror of
https://github.com/samba-team/samba.git
synced 2024-12-31 17:18:04 +03:00
dsdb:util: dsdb_module_dn initialises on failure
I think this may be a root cause of some Coverity false positives. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Jennifer Sutton <josutton@catalyst.net.nz>
This commit is contained in:
parent
24b0dad5b5
commit
3f83d029de
@ -887,6 +887,7 @@ int dsdb_module_reference_dn(struct ldb_module *module, TALLOC_CTX *mem_ctx, str
|
|||||||
ret = dsdb_module_search_dn(module, mem_ctx, &res, base, attrs,
|
ret = dsdb_module_search_dn(module, mem_ctx, &res, base, attrs,
|
||||||
DSDB_FLAG_NEXT_MODULE | DSDB_SEARCH_SHOW_EXTENDED_DN, parent);
|
DSDB_FLAG_NEXT_MODULE | DSDB_SEARCH_SHOW_EXTENDED_DN, parent);
|
||||||
if (ret != LDB_SUCCESS) {
|
if (ret != LDB_SUCCESS) {
|
||||||
|
*dn = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user