[PATCH] passdb: Avoid a "ret == true"

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Mar 1 20:23:00 UTC 2016


Hi!

Review appreciated!

Thanks,

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From 1f3442171b5eac3b8ddf634868b5615ae7d66e7d Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Tue, 1 Mar 2016 16:57:45 +0100
Subject: [PATCH] passdb: Avoid a "ret == true"

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 source3/passdb/pdb_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index d67e04e..6b6b106 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -1219,7 +1219,7 @@ bool pdb_id_to_sid(struct unixid *id, struct dom_sid *sid)
 
 	ret = pdb->id_to_sid(pdb, id, sid);
 
-	if (ret == true) {
+	if (ret) {
 		idmap_cache_set_sid2unixid(sid, id);
 	}
 
-- 
1.9.1



More information about the samba-technical mailing list