[422] in Pthreads mailing list archive
Bug in res_internal.c
daemon@ATHENA.MIT.EDU (Larry V. Streepy, Jr.)
Thu Sep 26 11:26:40 1996
Date: Thu, 26 Sep 1996 08:57:12 -0600
From: "Larry V. Streepy, Jr." <streepy@healthcare.com>
To: pthreads@MIT.EDU
I found and fixed a bug in res_internal that cuases gethostbyaddr to
return truncated host names. The addressing within the result buffer
was messed up. Here is the context diff for the fix.
*** ../../pthreads-1_60_beta5.old/net/res_internal.c Thu Feb 8
22:39:53 1996
--- ./res_internal.c Wed Sep 25 17:31:11 1996
***************
*** 144,149 ****
--- 144,150 ----
break;
cp += n;
result->h_name = bp;
+ bp += strlen(bp) + 1;
iquery_done = 1;
break;
}
--
Larry V. Streepy, Jr.
Chief Technical Officer, Healthcare Communications, Inc.
mailto:streepy@healthcare.com
(214) 851-7033 (Dallas Main #)
(970) 626-5028 (My office #) (970) 626-4425 (Fax)