Ignore leading witespace in the string given to PacketAliasProxyRule().
This commit is contained in:
parent
b54a8d8a2e
commit
4834b77d04
@ -533,6 +533,7 @@ PacketAliasProxyRule(const char *cmd)
|
||||
struct proxy_entry *proxy_entry;
|
||||
|
||||
/* Copy command line into a buffer */
|
||||
cmd += strspn(cmd, " \t");
|
||||
cmd_len = strlen(cmd);
|
||||
if (cmd_len > (sizeof(buffer) - 1))
|
||||
return -1;
|
||||
|
@ -533,6 +533,7 @@ PacketAliasProxyRule(const char *cmd)
|
||||
struct proxy_entry *proxy_entry;
|
||||
|
||||
/* Copy command line into a buffer */
|
||||
cmd += strspn(cmd, " \t");
|
||||
cmd_len = strlen(cmd);
|
||||
if (cmd_len > (sizeof(buffer) - 1))
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user