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 3b8f989 commit 26695ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/goodbyedpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,9 @@ int main(int argc, char *argv[]) {
unsigned int hdr_value_len;

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_name_addr = (char *)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 - ((char*)hdr_value_addr - packet_data);
hdr_value_len = packet_dataLen - ((char *)hdr_value_addr - (char *)packet_data);

host_addr = hdr_value_addr;
host_len = hdr_value_len;
Expand Down

0 comments on commit 26695ed

Please sign in to comment.