A fix is available
APAR status
Closed as program error.
Error description
The gethostbyname() call tries to resolve the host name through a name server. If a name server is not present or is unable to resolve the hostname, the first file found of /etc/hosts, yourhlq.HOSTS.SITEINFO, or tcphlq.HOSTS.SITEINFO is used. After PQ37436 the res_send funtion returns success regardless of whether an answer was returned from the nameserver or not. So when gethostbyname tries to evaluate the answer to determine if the call succeeded, it may branch arround the local resolution due to the incorrect return value from res_send. This problem also causes abends in the follwoing functions: dn_skipname , dn_expand , and getshort
Local fix
Back off PTFs for PQ37436: Release 608 : UQ42958 Release 609 : UQ42959 Release 703 : UQ42960
Problem summary
**************************************************************** * USERS AFFECTED: Users of gethostbyname() and res_send(). * **************************************************************** * PROBLEM DESCRIPTION: The C Run-Time Library function * * res_send() returns an incorrect value * * if there is no nameserver present. * * This causes functions that use * * res_send(), such as gethostbyname(), to * * return an incorrect result. * **************************************************************** * RECOMMENDATION: * **************************************************************** The function res_send() needs to be modified to return -1 if there is no nameserver present. In addition, if a connection had been made to a nameserver but an error was encountered without subsequently resolving from another nameserver, the answer should be returned along with the correct value from the first nameserver that returned an error while resolving.
Problem conclusion
The C Run-Time Library function res_send() has been modified to return -1 if a nameserver is not present. In addition, the answer and return value returned from res_send() is from the first nameserver that returns an error if no subsquent nameserver can resolve the input.
Temporary fix
Comments
APAR Information
APAR number
PQ41197
Reported component name
LE C LIBRARY
Reported component ID
568819805
Reported release
703
Status
CLOSED PER
PE
YesPE
HIPER
YesHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2000-09-01
Closed date
2000-09-12
Last modified date
2000-11-06
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UQ46969 UQ46970 UQ46971 122PC5
Modules/Macros
CELHRSND EDC4033F
Fix information
Fixed component name
LE C LIBRARY
Fixed component ID
568819805
Applicable component levels
R608 PSY UQ46969
UP00/09/22 P F009 «
R609 PSY UQ46970
UP00/09/22 P F009 «
R703 PSY UQ46971
UP00/09/22 P F009 «
Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVSBD","label":"Runtime"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"703","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"703","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":null,"label":null},"Product":{"code":"SG19O","label":"APARs - MVS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"703","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
06 November 2000