From 2c8bd73f63ef3a8345ac94f9b54bed660afe9685 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 14 May 2010 09:44:26 +0000 Subject: [PATCH] fix in6_addr problems --- sap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sap.c b/sap.c index 654e8ac..da1d959 100644 --- a/sap.c +++ b/sap.c @@ -204,7 +204,7 @@ char *get_url_from_sap(char *service) if (sap_addrtype) { struct in6_addr in6addr; - memcpy(in6addr.in6_u.u6_addr8, sender_address, 16); + memcpy(in6addr.s6_addr, sender_address, 16); if (!(sdpinfo->host = (char*)inet_ntop(AF_INET6, &in6addr, hostbuf, INET6_ADDRSTRLEN))) { perror("inet_ntop"); continue; -- 2.39.2