浏览代码

Bug 613056 - fix coverify Defect Type: Null pointer dereferences issues 11892 - 11939

https://bugzilla.redhat.com/show_bug.cgi?id=613056
Resolves: bug 613056
Bug description: Fix coverify Defect Type: Null pointer dereferences issues 11892 - 11939
Fix description: Catch possible NULL pointer in roles_cache_change_notify().
Endi S. Dewata 15 年之前
父节点
当前提交
8bc4544728
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ldap/servers/plugins/roles/roles_cache.c

+ 1 - 1
ldap/servers/plugins/roles/roles_cache.c

@@ -801,7 +801,7 @@ void roles_cache_change_notify(Slapi_PBlock *pb)
 
     /* Don't update local cache when remote entries are updated */
     slapi_pblock_get( pb, SLAPI_BACKEND, &be );
-    if ( 	( be!=NULL ) && 
+    if ( 	( be==NULL ) ||
 			( slapi_be_is_flag_set(be,SLAPI_BE_FLAG_REMOTE_DATA)) )
 	{
 		return;