mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-26 01:59:53 +03:00
cppcheck issue:
[src/Cedar/Connection.c:1041] -> [src/Cedar/Connection.c:1043]: (warning) Either the condition 's!=0' is redundant or there is possible null pointer dereference: s.
This commit is contained in:
parent
01edd34bbe
commit
29f93371c3
@ -1030,7 +1030,7 @@ void ConnectionSend(CONNECTION *c, UINT64 now)
|
||||
UINT size;
|
||||
SESSION *s;
|
||||
HUB *hub = NULL;
|
||||
bool use_qos;
|
||||
bool use_qos = false;
|
||||
// Validate arguments
|
||||
if (c == NULL)
|
||||
{
|
||||
@ -1038,11 +1038,11 @@ void ConnectionSend(CONNECTION *c, UINT64 now)
|
||||
}
|
||||
|
||||
s = c->Session;
|
||||
use_qos = s->QoS;
|
||||
|
||||
if (s != NULL)
|
||||
{
|
||||
hub = s->Hub;
|
||||
use_qos = s->QoS;
|
||||
}
|
||||
|
||||
// Protocol
|
||||
|
Loading…
Reference in New Issue
Block a user