Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a crash with testline, introduced with the "underlying ipv4" feat…

…ure.
  • Loading branch information...
commit 6387b5ad4472d1a8f8fbd0b7f3f32dd9d8542072 1 parent 1cf9ef5
@jillest jillest authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/hostmask.c
View
2  src/hostmask.c
@@ -422,7 +422,7 @@ find_address_conf(const char *host, const char *sockhost, const char *user,
}
#ifdef RB_IPV6
- if(ip->sa_family == AF_INET6 &&
+ if(ip != NULL && ip->sa_family == AF_INET6 &&
ipv4_from_ipv6((const struct sockaddr_in6 *)(const void *)ip, &ip4))
{
kconf = find_conf_by_address(NULL, NULL, NULL, (struct sockaddr *)&ip4, CONF_KILL, AF_INET, vuser, NULL);
Please sign in to comment.
Something went wrong with that request. Please try again.