From 4afbda221c20ffa36a1d1e37ef11f86073a49da6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 23 Sep 2011 08:35:17 +0200 Subject: s4:libcli/raw: implement on top of smbXcli_conn/req metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Wed Nov 30 15:13:36 CET 2011 on sn-devel-104 --- source4/ntvfs/cifs/vfs_cifs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/ntvfs') diff --git a/source4/ntvfs/cifs/vfs_cifs.c b/source4/ntvfs/cifs/vfs_cifs.c index 91ca08d2de..72dff99ccf 100644 --- a/source4/ntvfs/cifs/vfs_cifs.c +++ b/source4/ntvfs/cifs/vfs_cifs.c @@ -34,6 +34,7 @@ #include "../lib/util/dlinklist.h" #include "param/param.h" #include "libcli/resolve/resolve.h" +#include "../libcli/smb/smbXcli_base.h" struct cvfs_file { struct cvfs_file *prev, *next; @@ -66,7 +67,7 @@ struct async_info { NTSTATUS ntvfs_cifs_init(void); #define CHECK_UPSTREAM_OPEN do { \ - if (! p->transport->socket->sock) { \ + if (!smbXcli_conn_is_connected(p->transport->conn)) { \ req->async_states->state|=NTVFS_ASYNC_STATE_CLOSE; \ return NT_STATUS_CONNECTION_DISCONNECTED; \ } \ -- cgit