git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a88e3be
)
s3fs-net: Use talloc for memory allocation.
author
Andreas Schneider
<asn@samba.org>
Mon, 29 Oct 2012 20:12:13 +0000
(21:12 +0100)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/source3/utils/net.c
b/source3/utils/net.c
index eccb522dc9be7b7244d9eaa25949bb397d2b6370..85fe2f6454a7365635e14273bb9f09900489f787 100644
(file)
--- 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;