]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-t2-dir-search-20060830
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 30 Aug 2006 05:45:18 +0000 (05:45 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 30 Aug 2006 05:45:18 +0000 (05:45 +0000)
return CM_ERROR_INVAL when we don't recognize the infoLevel

src/WINNT/afsd/smb3.c

index eb7808dc7020216a6eece4d7cc340c48fed1d4bc..c46835a31a80820b4558025cab6ccebde6380aab 100644 (file)
@@ -3950,6 +3950,9 @@ long smb_ReceiveTran2SearchDir(smb_vc_t *vcp, smb_tran2Packet_t *p, smb_packet_t
     osi_Log3(smb_logp, "...T2 search op %d, id %d, nextCookie 0x%x",
               p->opcode, dsp->cookie, nextCookie);
 
+    if (infoLevel > 0x104)
+       return CM_ERROR_INVAL;
+
     if (infoLevel >= 0x101)
         searchFlags &= ~4;     /* no resume keys */