Skip to content

Commit

Permalink
[proto_hep] don't drop packets with port 0
Browse files Browse the repository at this point in the history
    This packets might be different than sip, internally generated
that might not necessarily be related to a connection.
  • Loading branch information
ionutrazvanionita committed Sep 28, 2016
1 parent 89f5ec2 commit 7d2ab2b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions modules/proto_hep/proto_hep.c
Expand Up @@ -1276,12 +1276,6 @@ static int hep_udp_read_req(struct socket_info *si, int* bytes_read)
}
}

if (ri.src_port==0){
tmp=ip_addr2a(&ri.src_ip);
LM_INFO("dropping 0 port packet for %s\n", tmp);
return 0;
}

if (ret != HEP_SCRIPT_SKIP) {
/* receive_msg must free buf too!*/
receive_msg( msg.s, msg.len, &ri, ctx);
Expand Down

0 comments on commit 7d2ab2b

Please sign in to comment.