Log the connect message after calling log_init().
authorWayne Davison <wayned@samba.org>
Fri, 31 Mar 2006 17:37:21 +0000 (17:37 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 31 Mar 2006 17:37:21 +0000 (17:37 +0000)
clientserver.c

index 138695ec4240e2fa5c8006493d906eff9190ba96..4c8057eeb732787a68b8b567acbac37d12d94cd4 100644 (file)
@@ -733,8 +733,6 @@ int start_daemon(int f_in, int f_out)
        char *host = client_name(f_in);
        int i;
 
-       rprintf(FLOG, "connect from %s (%s)\n", host, addr);
-
        io_set_sock_fds(f_in, f_out);
 
        if (!lp_load(config_file, 0))
@@ -742,6 +740,8 @@ int start_daemon(int f_in, int f_out)
 
        log_init();
 
+       rprintf(FLOG, "connect from %s (%s)\n", host, addr);
+
        if (!am_server) {
                set_socket_options(f_in, "SO_KEEPALIVE");
                if (sockopts)