mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
src/Cedar/Logging.c: remove logically dead code
found by coverity
This commit is contained in:
parent
2103520728
commit
a7933800d0
@ -1145,14 +1145,7 @@ bool PacketLog(HUB *hub, SESSION *src_session, SESSION *dest_session, PKT *packe
|
|||||||
pl->Cedar = hub->Cedar;
|
pl->Cedar = hub->Cedar;
|
||||||
pl->Packet = p;
|
pl->Packet = p;
|
||||||
pl->NoLog = no_log;
|
pl->NoLog = no_log;
|
||||||
if (src_session != NULL)
|
|
||||||
{
|
|
||||||
pl->SrcSessionName = CopyStr(src_session->Name);
|
pl->SrcSessionName = CopyStr(src_session->Name);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
pl->SrcSessionName = CopyStr("");
|
|
||||||
}
|
|
||||||
if (dest_session != NULL)
|
if (dest_session != NULL)
|
||||||
{
|
{
|
||||||
pl->DestSessionName = CopyStr(dest_session->Name);
|
pl->DestSessionName = CopyStr(dest_session->Name);
|
||||||
|
Loading…
Reference in New Issue
Block a user