s3:smb2_server: pass smbXsrv_connection to smbd_server_connection_terminate*()
[kamenim/samba-autobuild/.git] / source3 / smbd / smbXsrv_session.c
index 560fa3c2b4d5da110edea8b42f073c094192e690..bd08f6ba30586ea0580baae5bf15b92124997ced 100644 (file)
@@ -341,7 +341,7 @@ next:
        subreq = messaging_read_send(table, conn->ev_ctx, conn->msg_ctx,
                                     MSG_SMBXSRV_SESSION_CLOSE);
        if (subreq == NULL) {
-               smbd_server_connection_terminate(conn->sconn,
+               smbd_server_connection_terminate(conn,
                                                 "msg_read_send() failed");
                return;
        }