[Bug 173] New: resolver does not return proper error codes
bugzilla at busybox.net
bugzilla at busybox.net
Tue Mar 10 09:01:30 UTC 2009
https://bugs.busybox.net/show_bug.cgi?id=173
Summary: resolver does not return proper error codes
Product: uClibc
Version: 0.9.30
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Networking
AssignedTo: unassigned at uclibc.org
ReportedBy: timo.teras at iki.fi
CC: uclibc-cvs at uclibc.org
Estimated Hours: 0.0
Created an attachment (id=129)
--> (https://bugs.busybox.net/attachment.cgi?id=129)
Test-case
The res_query and other resolver functions do not parse the reply error codes
properly. h_errno mostly contains 2 (TRY_AGAIN) even though other error should
be there.
Attached is a test program that does T_TXT queries. On glibc and other system
reports (assuming av.com does not have TXT records in future):
av.com: -1, no_data (4)
non-existant-domain.info: -1, host_not_found (1)
While uclibc returns:
av.com: -1, try_again (2)
non-existant-domain.info: -1, try_again (2)
This is especially problematic for applications that depend on the NO_DATA
error. E.g. Overlapped ENUM lookups for NAPTR records.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the uClibc-cvs
mailing list