Ignore leading witespace in the string given to PacketAliasProxyRule().
This commit is contained in:
parent
b54a8d8a2e
commit
4834b77d04
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71763
@ -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