r18772: Now that we don't have a one-byte keylength in the extended security case
authorVolker Lendecke <vlendec@samba.org>
Thu, 21 Sep 2006 05:19:22 +0000 (05:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:00:56 +0000 (12:00 -0500)
anymore, we don't have to truncate the length to 255 anymore.

The test I did for this: I sent 50 times the NTLMSSP oid. With truncating
Vista said Access Denied, without truncating it liked the response.

Volker

source/smbd/negprot.c

index 2df7f45abad05a2d7d6b228b7a161834972b0809..b583623a4b828d8ab7bbd14094993a32b1ef7732 100644 (file)
@@ -224,10 +224,6 @@ static int negprot_spnego(char *p)
 
        memcpy(p, blob.data, blob.length);
        len = blob.length;
-       if (len > 256) {
-               DEBUG(0,("negprot_spnego: blob length too long (%d)\n", len));
-               len = 255;
-       }
        data_blob_free(&blob);
 
        return len;