Package: isakmpd
Version: 20041012-5
Severity: grave
Tags: patch
Justification: renders package unusable


the calculation used by 'if_map' to iterate through the interface
structures uses an odd length calculation that appears wrong; at
least for the xen-amd-2.6.18 kernel i'm running.

the attached patch adjust len to the fixed length of the 'ifreq'
structure allowing this to correctly iterate; unfortunately (i'm
guessing) that the kernel structures used have changed and, thus,
it will probably need serious alteration before it could be used.

it's appears to be working correctly on this platform with this 
patch.

--- isakmpd-20041012/if.c-orig  2009-08-20 14:38:17.000000000 +0000
+++ isakmpd-20041012/if.c       2009-08-20 15:05:31.000000000 +0000
@@ -143,8 +143,7 @@
                ifrp = (struct ifreq *)p;
                if ((*func)(ifrp->ifr_name, &ifrp->ifr_addr, arg) == -1)
                        err = -1;
-               len = sizeof ifrp->ifr_name +
-                   MAX(sysdep_sa_len(&ifrp->ifr_addr), sizeof ifrp->ifr_addr);
+               len = sizeof(struct ifreq) ;
        }
        free(ifc.ifc_buf);
 #endif

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.18-92.1.22.el5xen (SMP w/1 CPU core)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages isakmpd depends on:
ii  libc6                   2.7-18           GNU C Library: Shared libraries
ii  libgmp3c2               2:4.2.2+dfsg-3   Multiprecision arithmetic library
ii  libssl0.9.8             0.9.8g-15+lenny1 SSL shared libraries

isakmpd recommends no packages.

isakmpd suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to