Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix segfault on winpcap connect.

  • Loading branch information...
commit 03dd5e78d60a4838d1beab7023216777f6c0acce 1 parent 5161afa
@JoakimSoderberg JoakimSoderberg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  daemon.c
View
2  daemon.c
@@ -1548,7 +1548,7 @@ void daemon_seraddr(struct sockaddr_storage *sockaddrin, struct sockaddr_storage
sockaddr->sin_port= htons(sockaddr->sin_port);
memcpy(sockaddrout, sockaddr, sizeof(struct sockaddr_in) );
}
- else
+ else if (sockaddrin->ss_family == AF_INET6)
{
struct sockaddr_in6 *sockaddr;
Please sign in to comment.
Something went wrong with that request. Please try again.