소스 검색

Bug 689537 - (cov#10610) Fix Coverity NULL pointer dereferences

The changelog import code releases the replica object when it is
NULL, causing a NULL pointer dereference.  We should not be calling
the release function if replica_obj is NULL.
Nathan Kinder 14 년 전
부모
커밋
8424307aa2
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      ldap/servers/plugins/replication/cl5_api.c

+ 0 - 1
ldap/servers/plugins/replication/cl5_api.c

@@ -1046,7 +1046,6 @@ cl5ImportLDIF (const char *clDir, const char *ldifFile, Object **replicas)
                         "failed to write operation to the changelog: "
                         "type: %lu, dn: %s\n",
                         op.operation_type, op.target_address.dn);
-                object_release (replica_obj);
                 slapi_ch_free_string(&replGen);
                 operation_parameters_done (&op);
                 goto done;