Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 1997 17:22:54 +0300 (MSK)
From:      =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7_=2F_Andrey_A=2E?= =?KOI8-R?Q?_Chernov?= <ache@nagual.ru>
To:        FreeBSD-current <current@freebsd.org>, peter@freebsd.org, wpaul@freebsd.org, Garrett Wollman <wollman@lcs.mit.edu>
Subject:   Serious bug in gethostbydns!!!
Message-ID:  <Pine.BSF.3.95.970105171353.2353A-100000@nagual.ru>

next in thread | raw e-mail | index | archive | help
gethostbyname() now can't search some short valid DNS name like:
"d133", "bed", "fade", etc. (Which looks like hexadecimal digits)
doe to this stupid line in gethostbydns.c

	if (isxdigit(name[0]) || name[0] == ':')

I.e. it convert this name to hexadecimal number and not search it
as in normal case. Please, fix it!

This bug was introduced from in v1.16 of gethostbydns.c

-- 
Andrey A. Chernov
<ache@null.net>
http://www.nagual.ru/~ache/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970105171353.2353A-100000>