< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate] Bug in DnsUtil::getInterfaces (Patch)


The patch I forgot to attach last time (of course).
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066

*** /tmp/resiprocate/rutil/DnsUtil.cxx	2007-11-17 15:38:51.000000000 +0100
--- DnsUtil.cxx	2007-11-17 15:29:33.000000000 +0100
***************
*** 380,386 ****
  #if defined(__NetBSD__) || defined(__APPLE__)
        int si = sizeof(ifr->ifr_name) + ifr->ifr_addr.sa_len;
  #else
!       int si = sizeof(ifr->ifr_name) + sizeof(struct sockaddr);
  #endif
        
        tl -= si;
--- 380,386 ----
  #if defined(__NetBSD__) || defined(__APPLE__)
        int si = sizeof(ifr->ifr_name) + ifr->ifr_addr.sa_len;
  #else
!       int si = sizeof(ifr->ifr_name) + sizeof(ifr->ifr_ifru);
  #endif
        
        tl -= si;