diff options
Diffstat (limited to 'community/gvm-libs/use-posix-addr-struct.patch')
-rw-r--r-- | community/gvm-libs/use-posix-addr-struct.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/community/gvm-libs/use-posix-addr-struct.patch b/community/gvm-libs/use-posix-addr-struct.patch new file mode 100644 index 00000000000..43fcb4dfc62 --- /dev/null +++ b/community/gvm-libs/use-posix-addr-struct.patch @@ -0,0 +1,17 @@ +diff --git a/base/hosts.c b/base/hosts.c +index fd4a3f5..543231f 100644 +--- a/base/hosts.c ++++ b/base/hosts.c +@@ -2031,10 +2031,10 @@ gvm_duplicate_host (gvm_host_t *host) + ret->name = g_strdup (host->name); + break; + case HOST_TYPE_IPV4: +- ret->addr.s_addr = host->addr.s_addr; ++ ret->addr = host->addr; + break; + case HOST_TYPE_IPV6: +- ret->addr6.__in6_u = host->addr6.__in6_u; ++ ret->addr6 = host->addr6; + break; + default: + g_free (ret); |