git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
627f46c
)
s3:winbindd/idmap_tdb2: fix logic error in set_mapping_action
author
Christian Ambach
<ambi@samba.org>
Sun, 26 Feb 2012 16:49:23 +0000
(17:49 +0100)
committer
Christian Ambach
<ambi@samba.org>
Tue, 1 May 2012 07:32:11 +0000
(09:32 +0200)
fix an endless loop
source3/winbindd/idmap_tdb2.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_tdb2.c
b/source3/winbindd/idmap_tdb2.c
index b80b8ef3a4e034afd1a72df67864e8df11e354b9..bd535c01416f5a985794be403d6cfc297a36d3bb 100644
(file)
--- a/
source3/winbindd/idmap_tdb2.c
+++ b/
source3/winbindd/idmap_tdb2.c
@@
-149,7
+149,7
@@
static NTSTATUS idmap_tdb2_set_mapping_action(struct db_context *db,
/* check wheter sid mapping is already present in db */
ret = dbwrap_fetch_bystring(db, tmp_ctx, state->ksidstr, &data);
- if (
!
NT_STATUS_IS_OK(ret)) {
+ if (NT_STATUS_IS_OK(ret)) {
ret = NT_STATUS_OBJECT_NAME_COLLISION;
goto done;
}