ctdb: Fix the build on FreeBSD 10.1
[gd/samba-autobuild/.git] / ctdb / common / system_util.c
index 1ae0bae80396ea8d28e38ca8ee61c6138ebab867..663df6e6b579eabc7a5e254accc2130468157aac 100644 (file)
@@ -157,7 +157,7 @@ bool parse_ipv4(const char *s, unsigned port, struct sockaddr_in *sin)
        }
 
 #ifdef HAVE_SOCK_SIN_LEN
-       sin->ip.sin_len = sizeof(*sin);
+       sin->sin_len = sizeof(*sin);
 #endif
        return true;
 }