From: Jeffrey Altman Date: Wed, 30 Aug 2006 05:45:18 +0000 (+0000) Subject: STABLE14-t2-dir-search-20060830 X-Git-Tag: openafs-stable-1_4_2fc2~2 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1aebe929ad2e5ca4f0e00c166608edb6fdd3a3de;p=packages%2Fo%2Fopenafs.git STABLE14-t2-dir-search-20060830 return CM_ERROR_INVAL when we don't recognize the infoLevel --- diff --git a/src/WINNT/afsd/smb3.c b/src/WINNT/afsd/smb3.c index eb7808dc7..c46835a31 100644 --- a/src/WINNT/afsd/smb3.c +++ b/src/WINNT/afsd/smb3.c @@ -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 */