mirror of
https://github.com/nmap/nmap.git
synced 2026-08-28 04:25:15 +00:00
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:
parent
4842def2f6
commit
7d5879d4d1
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue