fix compression pointer for big (>255) DNS responses
Igor Sysoev
13 years ago
1865 | 1865 | } |
1866 | 1866 | |
1867 | 1867 | if (n & 0xc0) { |
1868 | n = (n & 0x3f << 8) + *p; | |
1868 | n = ((n & 0x3f) << 8) + *p; | |
1869 | 1869 | p = &buf[n]; |
1870 | 1870 | |
1871 | 1871 | } else { |
1915 | 1915 | } |
1916 | 1916 | |
1917 | 1917 | } else { |
1918 | n = (n & 0x3f << 8) + *src; | |
1918 | n = ((n & 0x3f) << 8) + *src; | |
1919 | 1919 | src = &buf[n]; |
1920 | 1920 | |
1921 | 1921 | n = *src++; |