dont call upcall_cleanup if versions were mismatched
This commit is contained in:
parent
a173395b5a
commit
3a69a29ff6
3 changed files with 4 additions and 4 deletions
|
|
@ -144,7 +144,8 @@ write_downcall:
|
||||||
GetLastError(), upcall.xid, opcode2string(upcall.opcode));
|
GetLastError(), upcall.xid, opcode2string(upcall.opcode));
|
||||||
upcall_cancel(&upcall);
|
upcall_cancel(&upcall);
|
||||||
}
|
}
|
||||||
upcall_cleanup(&upcall);
|
if (upcall.status != NFSD_VERSION_MISMATCH)
|
||||||
|
upcall_cleanup(&upcall);
|
||||||
}
|
}
|
||||||
CloseHandle(pipe);
|
CloseHandle(pipe);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,6 @@
|
||||||
#include "daemon_debug.h"
|
#include "daemon_debug.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
|
||||||
#define NFSD_VERSION_MISMATCH 116
|
|
||||||
|
|
||||||
extern const nfs41_upcall_op nfs41_op_mount;
|
extern const nfs41_upcall_op nfs41_op_mount;
|
||||||
extern const nfs41_upcall_op nfs41_op_unmount;
|
extern const nfs41_upcall_op nfs41_op_unmount;
|
||||||
extern const nfs41_upcall_op nfs41_op_open;
|
extern const nfs41_upcall_op nfs41_op_open;
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,8 @@
|
||||||
#include "nfs41_ops.h"
|
#include "nfs41_ops.h"
|
||||||
#include "from_kernel.h"
|
#include "from_kernel.h"
|
||||||
|
|
||||||
|
#define NFSD_VERSION_MISMATCH 116
|
||||||
|
|
||||||
/* structures for upcall arguments */
|
/* structures for upcall arguments */
|
||||||
typedef struct __mount_upcall_args {
|
typedef struct __mount_upcall_args {
|
||||||
const char *hostname;
|
const char *hostname;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue