1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Fix loop flow. #1834

This commit is contained in:
dmiller
2019-12-29 05:15:10 +00:00
parent b74f70fb33
commit 5e30d6e29e

View File

@@ -729,12 +729,10 @@ int PacketParser::payload_offset(const u8 *pkt, size_t pktlen, bool link_include
/* When we find application data, we compute the offset by substacting the /* When we find application data, we compute the offset by substacting the
length of the application data from the packet's total length */ length of the application data from the packet's total length */
if(me->protocol_id()==HEADER_TYPE_RAW_DATA){ if(me->protocol_id()==HEADER_TYPE_RAW_DATA){
offset=pktlen-me->getLen(); offset = pktlen - me->getLen();
break; break;
me=me->getNextElement();
}else{
me=me->getNextElement();
} }
me = me->getNextElement();
} }
/* Free the structs */ /* Free the structs */