1
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
f4f050bd0a

+ 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);