Fix an assertion that always evaluated to true. Reported by David

Binderman here: http://seclists.org/nmap-dev/2014/q1/6
This commit is contained in:
d33tah 2014-01-02 17:18:32 +00:00
parent 4842def2f6
commit 7d5879d4d1

View file

@ -2683,7 +2683,7 @@ bool HostOsScan::processTSeqResp(HostOsScanStats *hss, struct ip *ip, int replyN
bool HostOsScan::processTOpsResp(HostOsScanStats *hss, struct tcp_hdr *tcp, int replyNo) {
assert(replyNo >= 0 || replyNo < 6);
assert(replyNo >= 0 && replyNo < 6);
char ops_buf[256];
bool opsParseResult;
@ -2728,7 +2728,7 @@ bool HostOsScan::processTOpsResp(HostOsScanStats *hss, struct tcp_hdr *tcp, int
bool HostOsScan::processTWinResp(HostOsScanStats *hss, struct tcp_hdr *tcp, int replyNo) {
assert(replyNo >= 0 || replyNo < 6);
assert(replyNo >= 0 && replyNo < 6);
if (hss->FP_TWin || hss->TWin_AVs[replyNo])
return false;