1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

libsmbclient: Avoid a talloc_strdup in cli_connect_nb

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2013-04-04 15:01:25 +02:00 committed by Jeremy Allison
parent 3b3dacf20d
commit a7c02f9a6e

View File

@ -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) {