Remove a static fstring
authorVolker Lendecke <vl@sernet.de>
Sun, 11 Nov 2007 14:38:50 +0000 (15:38 +0100)
committerJeremy Allison <jra@samba.org>
Sun, 11 Nov 2007 21:14:06 +0000 (13:14 -0800)
I'm not sure why this used to be static, to me it seems that every time this
variable is overwritten. I just don't see how name_status_find() could return
true and not overwrite name. Can someone please review this and potentially
check it in?

Thanks,

Volker
(This used to be commit 329c688e4a9e69b71996fd1b0eee2202a849f3f5)

source3/libsmb/cliconnect.c

index 2fdd1223f0e022b57820b77c4845ec21254cd705..f0b03a85cf222f54cfaf5878bbfac057534afdf6 100644 (file)
@@ -1806,7 +1806,7 @@ struct cli_state *get_ipc_connect(char *server,
 struct cli_state *get_ipc_connect_master_ip(struct ip_service *mb_ip, pstring workgroup, struct user_auth_info *user_info)
 {
        char addr[INET6_ADDRSTRLEN];
-        static fstring name;
+        fstring name;
        struct cli_state *cli;
        struct sockaddr_storage server_ss;