krb5int_get_plugin_dir_data() uses + instead of * in realloc
authorEzra Peisach <epeisach@mit.edu>
Thu, 1 Jun 2006 00:56:12 +0000 (00:56 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 1 Jun 2006 00:56:12 +0000 (00:56 +0000)
commit218cd01853820bc9bcd6700f0d3b98458eb7c8a9
treeba538fe64e181648f15f83da21489ddaa528ff0d
parent246523a6906c8e5c744360f53721c83feb719581
krb5int_get_plugin_dir_data() uses + instead of * in realloc

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
src/util/support/plugins.c