mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-04-28 23:19:42 +00:00
Added boundary check
This commit is contained in:
parent
cefb667d8b
commit
5d2551ff3e
1 changed files with 1 additions and 1 deletions
|
|
@ -309,7 +309,7 @@ void ndpi_search_kerberos(struct ndpi_detection_module_struct *ndpi_struct,
|
|||
printf("name_offset=%u [%02X %02X] [byte 0 must be 0x1b]\n", name_offset, packet->payload[name_offset], packet->payload[name_offset+1]);
|
||||
#endif
|
||||
|
||||
if(name_offset < packet->payload_packet_len) {
|
||||
if(name_offset < (packet->payload_packet_len+1)) {
|
||||
u_int realm_len;
|
||||
|
||||
name_offset++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue