# HG changeset patch
# User John Calcote <john.calcote@gmail.com>
# Date 1491512773 21600
#      Thu Apr 06 15:06:13 2017 -0600
# Node ID a33eb64be8d3ad17e6052fa23e118f166f11fd16
# Parent  df49bc4f2972edbe5aa62598af00f57277f5bded
Bug#154: Fix DAAddresses hostname resolution issue.

diff -r df49bc4f2972 -r a33eb64be8d3 slpd/slpd_knownda.c
--- a/slpd/slpd_knownda.c	Thu Apr 06 14:55:36 2017 -0600
+++ b/slpd/slpd_knownda.c	Thu Apr 06 15:06:13 2017 -0600
@@ -574,7 +574,7 @@
                {
                   if (SLPNetIsIPV6() && ai_ref->ai_addr->sa_family == AF_INET6)
                   {
-                     memcpy(&daaddr, &ai_ref->ai_addr,
+                     memcpy(&daaddr, ai_ref->ai_addr,
                            sizeof(struct sockaddr_in6));
                      daaddr_isset = 1;
                      break;
@@ -584,7 +584,7 @@
                         && !daaddr_isset
                         && ai_ref->ai_addr->sa_family == AF_INET)
                   {
-                     memcpy(&daaddr, &ai_ref->ai_addr,
+                     memcpy(&daaddr, ai_ref->ai_addr,
                            sizeof(struct sockaddr_in));
                      daaddr_isset = 1;
                      /* we'll continue searching for an IPv6 address, but we'll use the first IPv4 address if none are found */
