Package: socat
Version: 2.0.0~beta4-1.1
Severity: normal
Control: found -1 1.7.1.3-1.4

some modern hostnames start with a digit.  E.g. Intel's Open Source
projects page is https://01.org/.

But socat thinks this is a numeric IP address, due to the following code:

  if (node && isdigit(node[0]&0xff)) {
#if HAVE_GETADDRINFO
       hints.ai_flags |= AI_NUMERICHOST;
#endif /* HAVE_GETADDRINFO */

Here's a problematic run:

0 dkg@alice:/tmp/cdtemp.5c2bca$ socat TCP4:01.org:80 STDIO
2012/12/13 20:49:54 socat[30500.178407168] E getaddrinfo("01.org", "(null)", 
{5,2,1,6}, {}): Name or service not known
1 dkg@alice:/tmp/cdtemp.5c2bca$ host 01.org
01.org has address 198.145.11.105
01.org has IPv6 address 2001:19d0:3:5::105
01.org mail is handled by 0 mx.01.org.
0 dkg@alice:/tmp/cdtemp.5c2bca$ 

Regards,

        --dkg

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages socat depends on:
ii  libc6        2.13-37
ii  libssl1.0.0  1.0.1c-4
ii  libwrap0     7.6.q-24

socat recommends no packages.

socat 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