summaryrefslogtreecommitdiff
path: root/source/lib/wins_srv.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-08-06 00:56:39 +0000
committerAndrew Tridgell <tridge@samba.org>2002-08-06 00:56:39 +0000
commit3f6ca04003172c22d02111f2170ad60f0d7936d9 (patch)
treec1980ab30532c23a39a7a0de4c0bb972bfb5f9a2 /source/lib/wins_srv.c
parent87c34a974a91e940bd26078a68dd84f4341d6913 (diff)
downloadsamba-3f6ca04003172c22d02111f2170ad60f0d7936d9.tar.gz
fixed a memory corruption bug in the wins code
Diffstat (limited to 'source/lib/wins_srv.c')
-rw-r--r--source/lib/wins_srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/wins_srv.c b/source/lib/wins_srv.c
index adf405ae7e2..61e77aca587 100644
--- a/source/lib/wins_srv.c
+++ b/source/lib/wins_srv.c
@@ -236,7 +236,7 @@ char **wins_srv_tags(void)
}
/* add it to the list */
- ret = (char **)Realloc(ret, (count+1) * sizeof(char *));
+ ret = (char **)Realloc(ret, (count+2) * sizeof(char *));
ret[count] = strdup(t_ip.tag);
if (!ret[count]) break;
count++;