[22] in Hesiod
patch to release of 11/22/89
daemon@ATHENA.MIT.EDU (Mark Rosenstein)
Wed Jan 31 15:16:53 1990
Date: Wed, 31 Jan 90 15:02:43 -0500
From: Mark Rosenstein <mar@MIT.EDU>
To: hesiod@MIT.EDU
So far only 1 bug has been found in this release. If anyone is using
the server compiled -DHESIOD_COMPAT to translate between T_UNSPECA
records and T_TXT records, it will incorrectly encode an entry that is
254 bytes long unless the following patch is applied to
named/ns_req.c.
-Mark
*** ns_req.c Tue Nov 14 14:54:00 1989
--- /afs/testers/src/named/src/ns_req.c Thu Jan 18 17:27:10 1990
***************
*** 828,835 ****
*cp++ = n;
if (n)
bcopy(tmpbuf, cp, n);
! cp += n + 1;
! PUTSHORT((u_short)(cp - sp - sizeof(u_short)), sp);
break;
} /* else fall through to: */
#endif
--- 828,836 ----
*cp++ = n;
if (n)
bcopy(tmpbuf, cp, n);
! cp += n;
! n = (u_short)(cp - sp - sizeof(u_short));
! PUTSHORT((u_short)n, sp);
break;
} /* else fall through to: */
#endif