Skip to content

Commit

Permalink
Update tlscommon.c
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenWall authored and GitHub committed Jun 27, 2018
1 parent 057f97a commit edfb823
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 edfb823

Please sign in to comment.