Ignore leading witespace in the string given to PacketAliasProxyRule().

This commit is contained in:
Brian Somers 2001-01-29 00:30:01 +00:00
parent b54a8d8a2e
commit 4834b77d04
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71763
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;