src/Cedar/IPsec_PPP.c: Array compared against NULL is always false

found by coverity
This commit is contained in:
Ilya Shipitsin committed 2018-08-12 15:00:17 +05:00
1 parent b8d5a85b0e
commit 2be6128e23
1 file changed
+1 -1
+1 -1
View File
@@ -775,7 +775,7 @@ bool PPPParseUsername(CEDAR *cedar, char *src_username, ETHERIP_ID *dst)
char src[MAX_SIZE];
// Validate arguments
Zero(dst, sizeof(ETHERIP_ID));
if (cedar == NULL || src == NULL || dst == NULL)
if (cedar == NULL || dst == NULL)
{
return false;
}