git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50e3592
)
s3:net: reduce indentation in net idmap delete for symmetry and consistency
author
Michael Adam
<obnox@samba.org>
Wed, 30 Jan 2013 14:50:52 +0000
(15:50 +0100)
committer
Michael Adam
<obnox@samba.org>
Tue, 5 Feb 2013 16:36:35 +0000
(17:36 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
source3/utils/net_idmap.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_idmap.c
b/source3/utils/net_idmap.c
index 782b553749cab6c2685a4c29f9e32bb9e10157f3..bdc4879e889e09899e4c8c75370554e9e774f836 100644
(file)
--- a/
source3/utils/net_idmap.c
+++ b/
source3/utils/net_idmap.c
@@
-475,11
+475,13
@@
NTSTATUS dbwrap_delete_mapping(struct db_context *db, TDB_DATA key1, bool force)
goto done;
}
- if (is_valid_mapping) {
- status = dbwrap_delete(db, val1);
- if (!NT_STATUS_IS_OK(status)) {
- DEBUG(1, ("failed to delete: %.*s\n", (int)val1.dsize, val1.dptr));
- }
+ if (!is_valid_mapping) {
+ goto done;
+ }
+
+ status = dbwrap_delete(db, val1);
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(1, ("failed to delete: %.*s\n", (int)val1.dsize, val1.dptr));
}
done: