summaryrefslogtreecommitdiff
path: root/source3/lib
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
commit4da476001e13dd032059ddaf72676c998089272d (patch)
tree0ad6ea0d8a01864432e14f79db872948945f1a6f /source3/lib
parentcded51d936dcbd31f5968570de5be6ad0ad9931d (diff)
downloadsamba-4da476001e13dd032059ddaf72676c998089272d.tar.gz
samba-4da476001e13dd032059ddaf72676c998089272d.tar.bz2
samba-4da476001e13dd032059ddaf72676c998089272d.zip
fixed a memory corruption bug in the wins code
(This used to be commit 3f6ca04003172c22d02111f2170ad60f0d7936d9)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/wins_srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/wins_srv.c b/source3/lib/wins_srv.c
index adf405ae7e..61e77aca58 100644
--- a/source3/lib/wins_srv.c
+++ b/source3/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++;