Skip to content

Commit

Permalink
(CL): Don't reverse IP addresses parameters on command line, issue #44
Browse files Browse the repository at this point in the history
Discovered by Michel Casabona and initially reported at Debian package bug tracking
  • Loading branch information
aoshiken committed Aug 24, 2017
1 parent 930e6cc commit 3b833c4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,6 @@ parser_cl_proto( struct term_node *node, int8_t argc, char **args, u_int8_t prot
{
int8_t aux, tmp, ifaces, i, j, has_help, has_arg, fail, gotit;
char *param;
u_int32_t aux_long;
struct term_tty *term_tty=NULL;
struct _attack_definition *first_attack;
struct commands_param *comm_par;
Expand Down Expand Up @@ -1725,14 +1724,6 @@ parser_cl_proto( struct term_node *node, int8_t argc, char **args, u_int8_t prot
return -1;
}

if (comm_par[j].type == FIELD_IP)
{
memcpy((void *)&aux_long, (void *)node->protocol[proto].commands_param[j], 4);
aux_long = ntohl(aux_long);
memcpy((void *)node->protocol[proto].commands_param[j], (void *)&aux_long, 4);
}


if (comm_par[j].filter) /* Use specific filter for this param */
{

Expand Down

0 comments on commit 3b833c4

Please sign in to comment.