View | Details | Raw Unified | Return to bug 23679
Collapse All | Expand All

(-)a/sysdeps/unix/sysv/linux/gethostid.c (-2 / +1 lines)
Lines 102-108 gethostid (void) Link Here
102
    {
102
    {
103
      int ret = __gethostbyname_r (hostname, &hostbuf,
103
      int ret = __gethostbyname_r (hostname, &hostbuf,
104
				   tmpbuf.data, tmpbuf.length, &hp, &herr);
104
				   tmpbuf.data, tmpbuf.length, &hp, &herr);
105
      if (ret == 0)
105
      if (ret == 0 && hp != NULL)
106
	break;
106
	break;
107
      else
107
      else
108
	{
108
	{
109
- 

Return to bug 23679