diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-08-06 00:56:39 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-08-06 00:56:39 +0000 |
commit | 3f6ca04003172c22d02111f2170ad60f0d7936d9 (patch) | |
tree | c1980ab30532c23a39a7a0de4c0bb972bfb5f9a2 /source/lib | |
parent | 87c34a974a91e940bd26078a68dd84f4341d6913 (diff) | |
download | samba-3f6ca04003172c22d02111f2170ad60f0d7936d9.tar.gz |
fixed a memory corruption bug in the wins code
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/wins_srv.c | 2 |
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++; |