From aca807c94cdb44cc846562400495ee3a7114f8e0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 29 Oct 2012 21:12:13 +0100 Subject: s3fs-net: Use talloc for memory allocation. Signed-off-by: Andreas Schneider Reviewed by: Jeremy Allison --- source3/utils/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/utils/net.c b/source3/utils/net.c index eccb522dc9..85fe2f6454 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -868,7 +868,7 @@ static struct functable net_func[] = { break; case 'U': c->opt_user_specified = true; - c->opt_user_name = SMB_STRDUP(c->opt_user_name); + c->opt_user_name = talloc_strdup(c, c->opt_user_name); p = strchr(c->opt_user_name,'%'); if (p) { *p = 0; -- cgit