Skip to content

Commit

Permalink
Filter expression should not start with a
Browse files Browse the repository at this point in the history
separator as its a malformed request in vrouter cli.

    Closes-Bug: #1734896

Change-Id: Iad450df0d9196a90d2cf5bd51e41c79a9d00b47e
  • Loading branch information
krharsh committed Jul 27, 2018
1 parent 5ba982c commit 071aca1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/vr_util.c
Expand Up @@ -64,6 +64,12 @@ vr_extract_token(char *string, char token_separator)
return NULL;
}

/* If first character is a separator its a malforned request */
if (*string == token_separator) {
printf("Malformed request: separator used incorrectly \n");
return NULL;
}

/* start searching for the token */
sep = strchr(string, token_separator);
if (sep) {
Expand Down

0 comments on commit 071aca1

Please sign in to comment.