STABLE14-t2-dir-search-20060830

return CM_ERROR_INVAL when we don't recognize the infoLevel
This commit is contained in:
Jeffrey Altman 2006-08-30 05:45:18 +00:00
parent 55fe5dd3ab
commit 1aebe929ad

View 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 */