浏览代码

609255 - fix coverity Defect Type: Memory - illegal accesses issues

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

12223 UNINIT Triaged Unassigned Bug Minor Fix Required
my_ber_scanf_attr() ds/ldap/servers/plugins/replication/repl5_total.c

Comment:
In case an error occurs between the line 594 and the line 648,
uninitialized value is passed to slapi_value_free. Need to init
value to NULL
Noriko Hosoi 15 年之前
父节点
当前提交
f4f050bd0a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ldap/servers/plugins/replication/repl5_total.c

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

@@ -591,7 +591,7 @@ my_ber_scanf_attr (BerElement *ber, Slapi_Attr **attr, PRBool *deleted)
     ber_tag_t tag;
     char *str = NULL;
     int rc;
-    Slapi_Value *value;
+    Slapi_Value *value = NULL;
 
     PR_ASSERT (ber && attr && deleted);