]> git.sur5r.net Git - openldap/commitdiff
Fix calloc typo
authorKurt Zeilenga <kurt@openldap.org>
Thu, 9 Mar 2000 19:15:48 +0000 (19:15 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 9 Mar 2000 19:15:48 +0000 (19:15 +0000)
servers/slapd/oc.c

index 0f978b1a4a730eac5499cbf3fcde527afb81bf44..a8997bc7792c064062da1c6d3e7d989a9e926272 100644 (file)
@@ -297,8 +297,8 @@ oc_add_sups(
                                sups1++;
                        }
                        nsups++;
-                       soc->soc_sups = (ObjectClass **)ch_calloc(1,
-                                         nsups*sizeof(ObjectClass *));
+                       soc->soc_sups = (ObjectClass **)ch_calloc(nsups,
+                                         sizeof(ObjectClass *));
                }
                nsups = 0;
                sups1 = sups;