[PATCH 1/4] s3fs-net: Use talloc for memory allocation.

Andreas Schneider asn at samba.org
Mon Oct 29 14:12:13 MDT 2012


Signed-off-by: Andreas Schneider <asn at samba.org>
---
 source3/utils/net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/utils/net.c b/source3/utils/net.c
index eccb522..85fe2f6 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;
-- 
1.8.0




More information about the samba-technical mailing list