s3fs-net: Use talloc for memory allocation.
authorAndreas Schneider <asn@samba.org>
Mon, 29 Oct 2012 20:12:13 +0000 (21:12 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 30 Oct 2012 17:40:08 +0000 (18:40 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed by: Jeremy Allison <jra@samba.org>

source3/utils/net.c

index eccb522dc9be7b7244d9eaa25949bb397d2b6370..85fe2f6454a7365635e14273bb9f09900489f787 100644 (file)
@@ -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;