summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/support/plugins.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c
index 0945d3995..de659cb1a 100644
--- a/src/util/support/plugins.c
+++ b/src/util/support/plugins.c
@@ -567,7 +567,7 @@ krb5int_get_plugin_dir_data (struct plugin_dir_handle *dirhandle,
void **newp = NULL;
count++;
- newp = realloc (p, ((count + 1) + sizeof (*p))); /* +1 for NULL */
+ newp = realloc (p, ((count + 1) * sizeof (*p))); /* +1 for NULL */
if (newp == NULL) {
err = errno;
} else {