summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2013-05-15 10:36:12 +0200
committerGünther Deschner <gd@samba.org>2013-05-15 13:34:46 +0200
commit05ac9c5b910f6ba39b33f3cc8f29b1a3c0c4544e (patch)
tree38e6f0e5d0045867d29918607b0a85b4387c07c1
parent9d7904ba4b404aee6c1cfa3abc50da0df6bc8c02 (diff)
downloadgss-proxy-05ac9c5b910f6ba39b33f3cc8f29b1a3c0c4544e.tar.gz
gss-proxy-05ac9c5b910f6ba39b33f3cc8f29b1a3c0c4544e.tar.xz
gss-proxy-05ac9c5b910f6ba39b33f3cc8f29b1a3c0c4544e.zip
Fix reallocation in gp_dinglibs_get_string_array().
Signed-off-by: Günther Deschner <gdeschner@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
-rw-r--r--proxy/src/gp_config_dinglibs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy/src/gp_config_dinglibs.c b/proxy/src/gp_config_dinglibs.c
index 3fc0076..cf6c7bd 100644
--- a/proxy/src/gp_config_dinglibs.c
+++ b/proxy/src/gp_config_dinglibs.c
@@ -144,7 +144,7 @@ int gp_dinglibs_get_string_array(struct gp_ini_context *ctx,
goto done;
}
- array = realloc(array, count);
+ array = realloc(array, (count+1) * sizeof(char *));
if (array == NULL) {
ret = ENOMEM;
goto done;