Kaynağa Gözat

610281 - fix coverity Defect Type: Control flow issues

https://bugzilla.redhat.com/show_bug.cgi?id=610281

11812 DEADCODE Triaged Unassigned Bug Moderate Fix Required
repl_objset_destroy() ds/ldap/servers/plugins/replication/repl_objset.c

Comment:
Fixed a typo.  The line 182 is supposed to be:
182 if ((co = llistGetFirst((*o)->objects, &cookie)) != NULL)
Noriko Hosoi 15 yıl önce
ebeveyn
işleme
e5da45f975

+ 1 - 1
ldap/servers/plugins/replication/repl_objset.c

@@ -179,7 +179,7 @@ repl_objset_destroy(Repl_Objset **o, time_t maxwait, FNFree panic_fn)
 			 * function for each remaining object.
 			 */
 			PR_Lock((*o)->lock);
-			if ((co = llistGetFirst((*o)->objects, &cookie)) == NULL)
+			if ((co = llistGetFirst((*o)->objects, &cookie)) != NULL)
 			{
 				panic_fn(co->data);
 				while (NULL != co)