fix IPv6 listen socket handling while reconfiguring

This commit is contained in:
Igor Sysoev 2010-06-30 12:01:56 +00:00
parent c31c38b95e
commit ce03ba019e

View File

@ -868,7 +868,7 @@ ngx_cmp_sockaddr(struct sockaddr *sa1, struct sockaddr *sa2)
sin61 = (struct sockaddr_in6 *) sa1;
sin62 = (struct sockaddr_in6 *) sa2;
if (sin61->sin6_port != sin61->sin6_port) {
if (sin61->sin6_port != sin62->sin6_port) {
return NGX_DECLINED;
}