From 4a90a915f2e76454ffd245e6b6e767fcbca78cff Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Mon, 6 Jun 2011 15:40:23 -0400 Subject: [PATCH] --- yaml --- r: 253277 b: refs/heads/master c: 9c4843ea576107a3c1fb94f2f758f198e9fe9e54 h: refs/heads/master i: 253275: d4062093a88eedcd622af08e7160aadd04f25f25 v: v3 --- [refs] | 2 +- trunk/fs/cifs/cifsencrypt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index c3501fbec1fd..a5483883dd7f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 243e2dd38e1b322b29a1714034cc60b84d3d5e07 +refs/heads/master: 9c4843ea576107a3c1fb94f2f758f198e9fe9e54 diff --git a/trunk/fs/cifs/cifsencrypt.c b/trunk/fs/cifs/cifsencrypt.c index dfbd9f1f373d..5a0ee7f2af06 100644 --- a/trunk/fs/cifs/cifsencrypt.c +++ b/trunk/fs/cifs/cifsencrypt.c @@ -184,7 +184,7 @@ int cifs_verify_signature(struct smb_hdr *cifs_pdu, if (cifs_pdu == NULL || server == NULL) return -EINVAL; - if (cifs_pdu->Command == SMB_COM_NEGOTIATE) + if (!server->session_estab) return 0; if (cifs_pdu->Command == SMB_COM_LOCKING_ANDX) {