Fixed short copies of struct sockaddr (it's shorter than sockaddr_in6!)

which was giving duff results when comparing IPv6 ACL entries.
This commit is contained in:
mbloch
2012-05-30 20:13:56 +01:00
parent 6d8afd1035
commit cd976d1c2c
4 changed files with 24 additions and 27 deletions

View File

@@ -333,7 +333,7 @@ void* control_serve(void* client_uncast)
return NULL;
}
void accept_control_connection(struct mode_serve_params* params, int client_fd, struct sockaddr* client_address)
void accept_control_connection(struct mode_serve_params* params, int client_fd, union mysockaddr* client_address)
{
pthread_t control_thread;
struct control_params* control_params;