[4544] in Athena Bugs

home help back first fref pref prev next nref lref last post

fix to res_debug to correctly print ttl's

daemon@ATHENA.MIT.EDU (Mark Rosenstein)
Fri Mar 16 16:53:46 1990

Date: Fri, 16 Mar 90 16:53:25 -0500
From: Mark Rosenstein <mar@MIT.EDU>
To: bugs@MIT.EDU
Cc: jfc@MIT.EDU
This is a fix by John Carr which I have just audited.  There's a bug
in /source/4.3/lib/libc/net/res_debug.c which causes programs which
attempt to display domain name packets to display the incorrect
time-to-live on resource records.  This bug is visible when logging is
enabled above level 3 on /etc/named, in nslookup, and probably other
programs as well.

I do have one problem with John's fix (in
/mit/dialup/named/res_debug.c): he changed some ifdef's at the
beginning to ALWAYS have DEBUG defined.  Here's a diff as I believe we
should fix it.
					-Mark

Toto>diff /paris/source/4.3/lib/libc/net/res_debug.c .
472,473c472,473
< *p_time(value)
<       u_long value;
---
> *p_time(cp)
>       u_char *cp;
474a475
>       u_long value;
477a479
>       value = _getlong(cp);

home help back first fref pref prev next nref lref last post