]> cvs.zerfleddert.de Git - record-dvb/commitdiff
fix in6_addr problems master
authormichael <michael>
Fri, 14 May 2010 09:44:26 +0000 (09:44 +0000)
committermichael <michael>
Fri, 14 May 2010 09:44:26 +0000 (09:44 +0000)
sap.c

diff --git a/sap.c b/sap.c
index 654e8ac086afdd30588ade4e750912b34025b136..da1d95948d3285e94fc533cdf03b5933eb363140 100644 (file)
--- 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;
Impressum, Datenschutz