Skip to content

Commit

Permalink
Merge pull request #10 from StephenWall/master
Browse files Browse the repository at this point in the history
fix comparing pointer of in6_addr instead of its content
  • Loading branch information
Fabian Mauchle authored and GitHub committed Jun 28, 2018
2 parents 057f97a + edfb823 commit ef6e5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tlscommon.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ static int subjectaltnameaddr(X509 *cert, int family, struct in6_addr *addr) {
v = (char *)ASN1_STRING_get0_data(gn->d.ia5);
l = ASN1_STRING_length(gn->d.ia5);
if (((family == AF_INET && l == sizeof(struct in_addr)) || (family == AF_INET6 && l == sizeof(struct in6_addr)))
&& !memcmp(v, &addr, l)) {
&& !memcmp(v, addr, l)) {
r = 1;
break;
}
Expand Down

0 comments on commit ef6e5a0

Please sign in to comment.