Added missing init_iconv() call when initiating a daemon transfer.
authorWayne Davison <wayned@samba.org>
Wed, 27 Feb 2008 15:19:13 +0000 (07:19 -0800)
committerWayne Davison <wayned@samba.org>
Wed, 27 Feb 2008 15:19:13 +0000 (07:19 -0800)
clientserver.c

index 3619810b7facd594cd477ceeb353b277811cad7f..f45d9e25fa7113c2556222bd92d055c2abecf926 100644 (file)
@@ -120,6 +120,10 @@ int start_socket_client(char *host, int remote_argc, char *remote_argv[],
 
        set_socket_options(fd, sockopts);
 
+#ifdef ICONV_CONST
+       setup_iconv();
+#endif
+
        ret = start_inband_exchange(fd, fd, user, remote_argc, remote_argv);
 
        return ret ? ret : client_run(fd, fd, -1, argc, argv);