mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-05-28 04:03:29 -04:00
options: drop useless netmask variable
netmask is simply used to reflect the value of p[2], therefore it can be dropped and p[2] can directly be used instead. Reported-by: Gert Doering <gert@greenie.muc.de> Signed-off-by: Antonio Quartulli <a@unstable.cc> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20220314131356.11577-1-a@unstable.cc> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23941.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
2047522286
commit
07be493796
1 changed files with 1 additions and 7 deletions
|
|
@ -7282,14 +7282,8 @@ add_option(struct options *options,
|
|||
}
|
||||
else if (streq(p[0], "iroute") && p[1] && !p[3])
|
||||
{
|
||||
const char *netmask = NULL;
|
||||
|
||||
VERIFY_PERMISSION(OPT_P_INSTANCE);
|
||||
if (p[2])
|
||||
{
|
||||
netmask = p[2];
|
||||
}
|
||||
option_iroute(options, p[1], netmask, msglevel);
|
||||
option_iroute(options, p[1], p[2], msglevel);
|
||||
}
|
||||
else if (streq(p[0], "iroute-ipv6") && p[1] && !p[2])
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue