git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b3dacf
)
libsmbclient: Avoid a talloc_strdup in cli_connect_nb
author
Volker Lendecke
<vl@samba.org>
Thu, 4 Apr 2013 13:01:25 +0000
(15:01 +0200)
committer
Jeremy Allison
<jra@samba.org>
Thu, 11 Apr 2013 21:41:25 +0000
(14:41 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/cliconnect.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/cliconnect.c
b/source3/libsmb/cliconnect.c
index 255b76ac19bfec8eec51d81b9be1983149d1cf6f..1624e7bbb2dfcf6efd015148042a0dbe6af69c92 100644
(file)
--- a/
source3/libsmb/cliconnect.c
+++ b/
source3/libsmb/cliconnect.c
@@
-2904,10
+2904,8
@@
NTSTATUS cli_connect_nb(const char *host, const struct sockaddr_storage *dest_ss
char *desthost;
char *p;
- desthost = talloc_strdup(talloc_tos(), host);
- if (desthost == NULL) {
- goto fail;
- }
+ /* Save the original host definition for cli_state_create */
+ desthost = host;
p = strchr(host, '#');
if (p != NULL) {