mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
ldb_ldif: avoid NULL dereference with unexpected arguments (CID 1107195)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
aa18f62a8a
commit
5dc8603883
@ -728,7 +728,7 @@ int ldb_ldif_parse_modrdn(struct ldb_context *ldb,
|
||||
if (_deleteoldrdn) {
|
||||
*_deleteoldrdn = deleteoldrdn;
|
||||
}
|
||||
if (_newsuperior) {
|
||||
if (_newsuperior != NULL && _newrdn != NULL) {
|
||||
if (newsuperior_val) {
|
||||
*_newrdn = talloc_move(mem_ctx, &newrdn);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user