diff options
author | Christian Ambach <ambi@samba.org> | 2012-02-26 17:49:23 +0100 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2012-05-01 09:32:11 +0200 |
commit | 15b12cbc8ab31f4f8a547f27985f24d72c1f0055 (patch) | |
tree | 50bbc00d403b8737352807fceaa2c93cf00911b5 | |
parent | 627f46cf1f48d7f742f0cf3405dc7c4cab5349d6 (diff) | |
download | samba-15b12cbc8ab31f4f8a547f27985f24d72c1f0055.tar.gz samba-15b12cbc8ab31f4f8a547f27985f24d72c1f0055.tar.bz2 samba-15b12cbc8ab31f4f8a547f27985f24d72c1f0055.zip |
s3:winbindd/idmap_tdb2: fix logic error in set_mapping_action
fix an endless loop
-rw-r--r-- | source3/winbindd/idmap_tdb2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_tdb2.c b/source3/winbindd/idmap_tdb2.c index b80b8ef3a4..bd535c0141 100644 --- 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; } |