mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
ensure that a compare with a non-null and null x509 field returns non-zero
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@210 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
parent
6dd1ae9595
commit
66c588d3ab
@ -438,7 +438,7 @@ static int asn1_compare_dn_comp(const char *dn1, const char *dn2)
|
||||
if (dn1 == NULL && dn2 == NULL)
|
||||
ret = 0;
|
||||
else
|
||||
ret = (dn1 && dn2) ? strcmp(dn1, dn2) : 0;
|
||||
ret = (dn1 && dn2) ? strcmp(dn1, dn2) : 1;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user