Skip to content

Commit

Permalink
Update goodbyedpi.c
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaXser committed Oct 3, 2024
1 parent 7dab78b commit 3b8f989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goodbyedpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ int main(int argc, char *argv[]) {
if (optimized_memmem(packet_data, packet_dataLen, http_host_find, sizeof(http_host_find) - 1)) {
hdr_name_addr = optimized_memmem(packet_data, packet_dataLen, http_host_find, sizeof(http_host_find) - 1);
hdr_value_addr = hdr_name_addr + sizeof(http_host_find) - 1;
hdr_value_len = packet_dataLen - (hdr_value_addr - packet_data);
hdr_value_len = packet_dataLen - ((char*)hdr_value_addr - packet_data);

host_addr = hdr_value_addr;
host_len = hdr_value_len;
Expand Down

0 comments on commit 3b8f989

Please sign in to comment.