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

@@ -71,7 +71,7 @@ struct mode_serve_params {
char* block_allocation_map;
struct { pthread_t thread; struct sockaddr address; }
struct { pthread_t thread; union mysockaddr address; }
nbd_client[MAX_NBD_CLIENTS];
};