In line 570, in reallocating the plugin tree - the memory allocated is
(count + 1) + sizeof(*p)
instead of
(count +1 ) * sizeof(*p)
Detected while running the krb5kdc under valgrind with memcheck.
ticket: new
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18070
dc483132-0cff-0310-8789-
dd5450dbe970
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 {