Browse Source

Ticket #48048 - Fix coverity issues - 2015/2/24

Coverity defect 13074 - Dereference after null check (FORWARD_NULL)
Description: Added NULL check for entry.  If NULL, continue the loop.
modified: write_replog_db in retrocl_po.c
Noriko Hosoi 10 years ago
parent
commit
3bf2d596de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/servers/plugins/retrocl/retrocl_po.c

+ 1 - 1
ldap/servers/plugins/retrocl/retrocl_po.c

@@ -231,7 +231,7 @@ write_replog_db(
             if ( entry == NULL ) {
                 slapi_pblock_get( pb, SLAPI_ENTRY_PRE_OP, &entry );
             }
-
+            if ( entry == NULL ) continue;
             uniqueId = slapi_entry_get_uniqueid( entry );
 
             slapi_log_error( SLAPI_LOG_PLUGIN, RETROCL_PLUGIN_NAME,