Skip to content

Commit

Permalink
Ensure the request protocol on its own is properly parsed.
Browse files Browse the repository at this point in the history
This fixes a regression introduced by 197f471.
  • Loading branch information
allinurl committed Feb 22, 2018
1 parent 52e4400 commit 34bca1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ parse_specifier (GLogItem * logitem, char **str, const char *p, const char *end)
if (!(tkn = parse_string (&(*str), end, 1)))
return spec_err (logitem, SPEC_TOKN_NUL, *p, NULL);

if (invalid_protocol (tkn)) {
if (!invalid_protocol (tkn)) {
spec_err (logitem, SPEC_TOKN_INV, *p, tkn);
free (tkn);
return 1;
Expand Down

0 comments on commit 34bca1a

Please sign in to comment.