Package: icmpinfo
Version: 1.11-5
Severity: normal

*** Please type your report below this line ***
I noticed that not the correct length is printed via -vvv.

Here a small patch which should added to the current Debian patch:

--- print.c     2006-12-02 13:41:55.000000000 +0100
+++ print.c.patched     2006-12-02 13:32:08.000000000 +0100
@@ -29,6 +29,7 @@
 struct sockaddr_in     *from;  /* address of sender */
 {
   int                  iphdrlen,doipdecoding=1;
+  int                  iplen;
   struct ip            *ip;    /* ptr to IP header */
   register struct icmp *icp;   /* ptr to ICMP header */
   struct tcphdr        *tp;    /* ptr to TCP header */
@@ -56,6 +57,7 @@
       }
     return -1;
   }
+  iplen = cc;
   cc -= iphdrlen;
 
   icp = (struct icmp *)(buf + iphdrlen);
@@ -178,7 +180,7 @@
            flagNEof = 1;
            while (flagNEof) {
              i = j = 0;
-             while (i < 16 && (flagNEof = cc--)) {
+             while (i < 16 && (flagNEof = iplen--)) {
                b= (int)(*(pbuf++));
                h[j++] = to_hex(b >> 4);
                h[j++] = to_hex(b & 0x0F);


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages icmpinfo depends on:
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries

icmpinfo recommends no packages.

-- no debconf information

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


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

Reply via email to