Sophie

Sophie

distrib > Mageia > 6 > armv7hl > by-pkgid > d3a5e072a4f134b7cc0aa5a38bbe62b3 > files > 1

389-ds-base-1.3.5.17-1.3.mga6.src.rpm

Index: 389-ds-base-1.3.4.14/ldap/servers/plugins/uiduniq/uid.c
===================================================================
--- 389-ds-base-1.3.4.14/ldap/servers/plugins/uiduniq/uid.c
+++ 389-ds-base-1.3.4.14/ldap/servers/plugins/uiduniq/uid.c	2017-01-20 08:32:41.016100144 -0500
@@ -299,7 +299,7 @@
                         }
                         
                         /* Store attrName in the config */
-                        tmp_config->attrs = (const char **) slapi_ch_calloc(1, sizeof(char *));
+                        tmp_config->attrs = (const char **) slapi_ch_calloc(2, sizeof(char *));
                         tmp_config->attrs[0] = slapi_ch_strdup(attrName);
                         argc--;
                         argv++; /* First argument was attribute name and remaining are subtrees */
@@ -340,7 +340,7 @@
                          *  - requiredObjectClass 
                          */
                         /* Store attrName in the config */
-                        tmp_config->attrs = (const char **) slapi_ch_calloc(1, sizeof(char *));
+                        tmp_config->attrs = (const char **) slapi_ch_calloc(2, sizeof(char *));
                         tmp_config->attrs[0] = slapi_ch_strdup(attrName);
                         
                         /* There is no subtrees */