mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-07 00:04:57 +03:00
cppcheck issues:
[src/Cedar/SM.c:875] -> [src/Cedar/SM.c:882]: (warning) Either the condition 'd==0' is redundant or there is possible null pointer dereference: d. [src/Cedar/UdpAccel.c:119] -> [src/Cedar/UdpAccel.c:123]: (warning) Either the condition 'a==0' is redundant or there is possible null pointer dereference: a.
This commit is contained in:
@ -116,7 +116,6 @@
|
||||
// Polling process
|
||||
void UdpAccelPoll(UDP_ACCEL *a)
|
||||
{
|
||||
UCHAR *tmp = a->TmpBuf;
|
||||
IP nat_t_ip;
|
||||
UINT num_ignore_errors = 0;
|
||||
// Validate arguments
|
||||
@ -124,6 +123,7 @@ void UdpAccelPoll(UDP_ACCEL *a)
|
||||
{
|
||||
return;
|
||||
}
|
||||
UCHAR *tmp = a->TmpBuf;
|
||||
|
||||
Lock(a->NatT_Lock);
|
||||
{
|
||||
|
Reference in New Issue
Block a user