Use sockaddr_in6 instead of sockaddr6_in
authorPetr Salinger <Petr.Salinger@seznam.cz>
Fri, 18 Jul 2014 23:14:43 +0000 (01:14 +0200)
committerBalint Reczey <balint@balintreczey.hu>
Sat, 19 Jul 2014 16:07:13 +0000 (18:07 +0200)
lib/socket.c

index f973f0178b923a0dab3f369fea14a04b076e85ab..3f7f89f90c9a368dc5ff6c48c0ab87f790d4e096 100644 (file)
@@ -506,7 +506,7 @@ static int rpc_connect_sockaddr_async(struct rpc_context *rpc, struct sockaddr_s
                                        ((struct sockaddr_in6 *)&ss)->sin6_port = port;
                                        ((struct sockaddr_in6 *)&ss)->sin6_family      = AF_INET6;
 #ifdef HAVE_SOCKADDR_LEN
-                                       ((struct sockaddr_in6 *)&ss)->sin6_len = sizeof(struct sockaddr6_in);
+                                       ((struct sockaddr_in6 *)&ss)->sin6_len = sizeof(struct sockaddr_in6);
 #endif
                                        break;
                                }