summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-10-29 21:12:13 +0100
committerJeremy Allison <jra@samba.org>2012-10-30 18:40:08 +0100
commitaca807c94cdb44cc846562400495ee3a7114f8e0 (patch)
treea1516988a8461e650fb72c9226d030dd04977d8e /source3
parenta88e3be794a7458ad644e5b73435971533aa7dbe (diff)
downloadsamba-aca807c94cdb44cc846562400495ee3a7114f8e0.tar.gz
samba-aca807c94cdb44cc846562400495ee3a7114f8e0.tar.bz2
samba-aca807c94cdb44cc846562400495ee3a7114f8e0.zip
s3fs-net: Use talloc for memory allocation.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net.c2
1 files changed, 1 insertions, 1 deletions
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;