summaryrefslogtreecommitdiffstats
path: root/source4/libnet/libnet_user.c
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2005-11-13 18:35:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:16 -0500
commit5da7edac6d9c32b483276930cf05ff4736258fb8 (patch)
tree97fe07cd80a30f39b7a7ff595552d6235f46edf5 /source4/libnet/libnet_user.c
parentdfd5b1b0203e592a7707056627395b52f8da1017 (diff)
downloadsamba-5da7edac6d9c32b483276930cf05ff4736258fb8.tar.gz
samba-5da7edac6d9c32b483276930cf05ff4736258fb8.tar.xz
samba-5da7edac6d9c32b483276930cf05ff4736258fb8.zip
r11708: Fix allocation of too small buffer to hold ip address.
Thanks metze for catching that. rafal (This used to be commit 5114ef8d1cc9b6f2206463d4ba76653669728403)
Diffstat (limited to 'source4/libnet/libnet_user.c')
-rw-r--r--source4/libnet/libnet_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet_user.c b/source4/libnet/libnet_user.c
index f8371b92feb..2b648e708a5 100644
--- a/source4/libnet/libnet_user.c
+++ b/source4/libnet/libnet_user.c
@@ -33,7 +33,7 @@ NTSTATUS libnet_CreateUser(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru
struct libnet_rpc_useradd user_io;
const char *address;
- address = talloc_array(mem_ctx, const char, 8);
+ address = talloc_array(mem_ctx, const char, 16);
/* find domain pdc */
fp.in.hostname = r->in.domain_name;