Skip to content

Commit

Permalink
FIX: Ports were using as uint8_t, instead of uint16_t
Browse files Browse the repository at this point in the history
  • Loading branch information
eugpermar committed Oct 30, 2014
1 parent b3f9d72 commit a38c808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/output-plugins/spo_alert_json.c
Expand Up @@ -989,12 +989,12 @@ static uint8_t extract_proto(const void *_event, uint32_t event_type, Packet *p)
}
}

static uint8_t extract_port_from_packet(Packet *p,int srcdst_req)
static uint16_t extract_port_from_packet(Packet *p,int srcdst_req)
{
return ntohs(srcdst_req == SRC_REQ ? p->sp : p->dp);
}

static uint8_t extract_port0(const void *_event, uint32_t event_type, Packet *p,int srcdst_req)
static uint16_t extract_port0(const void *_event, uint32_t event_type, Packet *p,int srcdst_req)
{
if(!(srcdst_req == SRC_REQ || srcdst_req == DST_REQ))
{
Expand Down

0 comments on commit a38c808

Please sign in to comment.