Переглянути джерело

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;