1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-26 11:29: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, L2TPv3
{
// EtherIP
ret -= 2; ret -= 2;
}
else
{
// L2TPv3
ret -= 2;
}
// Ethernet // Ethernet
ret -= 14; ret -= 14;