s3:smbd: only pass smbXsrv_connection to fork_echo_handler()
[nivanova/samba-autobuild/.git] / source3 / smbd / negprot.c
index 42fe48ec999610be530cf0b791d56d9e881cef81..e6a9bde15e1c84241d8e9e96d28654c756a21454 100644 (file)
@@ -698,7 +698,7 @@ void reply_negprot(struct smb_request *req)
        TALLOC_FREE(cliprotos);
 
        if (lp_async_smb_echo_handler() && (chosen_level < PROTOCOL_SMB2_02) &&
-           !fork_echo_handler(sconn)) {
+           !fork_echo_handler(xconn)) {
                exit_server("Failed to fork echo handler");
        }