From: michael Date: Fri, 14 May 2010 09:44:26 +0000 (+0000) Subject: fix in6_addr problems X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/record-dvb/commitdiff_plain/refs/heads/master?hp=c97cc707f7cb01f53d02868f8794153718eece3b fix in6_addr problems --- 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;