mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-10-22 01:51:20 +03:00
src/Cedar/IPsec_PPP.c: Array compared against NULL is always false
found by coverity
This commit is contained in:
1 parent
b8d5a85b0e
commit
2be6128e23
1 file changed
+1
-1
@@ -775,7 +775,7 @@ bool PPPParseUsername(CEDAR *cedar, char *src_username, ETHERIP_ID *dst)
|
|||||||
char src[MAX_SIZE];
|
char src[MAX_SIZE];
|
||||||
// Validate arguments
|
// Validate arguments
|
||||||
Zero(dst, sizeof(ETHERIP_ID));
|
Zero(dst, sizeof(ETHERIP_ID));
|
||||||
if (cedar == NULL || src == NULL || dst == NULL)
|
if (cedar == NULL || dst == NULL)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user