1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-26 18:19:53 +03:00

src/Cedar/IPsec_EtherIP: resolve "Identical code for different branches"

found by coverity
This commit is contained in:
Ilya Shipitsin 2018-08-31 00:56:00 +05:00
parent 2c2caa81bc
commit 9675b0eb6d

View File

@ -541,16 +541,8 @@ UINT CalcEtherIPTcpMss(ETHERIP_SERVER *s)
}
}
if (s->L2TPv3 == false)
{
// EtherIP
ret -= 2;
}
else
{
// L2TPv3
ret -= 2;
}
// EtherIP, L2TPv3
ret -= 2;
// Ethernet
ret -= 14;