Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2003 14:29:59 -0800 (PST)
From:      Alex Vasylenko <lxv@send-pr.sink.omut.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        <bind-bugs@isc.org>
Subject:   ports/47446: nslookup crash in SetDefaultServer (patch)
Message-ID:  <200301242229.h0OMTxWs003846@mix.omut.org>

next in thread | raw e-mail | index | archive | help

>Number:         47446
>Category:       ports
>Synopsis:       nslookup crash in SetDefaultServer (patch)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 24 14:40:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Alex Vasylenko
>Release:        FreeBSD 4.7-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD 4.7-RELEASE-p2 #1: Sun Dec 8 21:03:35 PST 2002


	
>Description:
	nslookup will reference a NULL-pointer under certain conditions.
	Both ports and the base system are affected. The bug was introduced
	in BIND version 8.3.3 (after 8.3.2-T1B) and is present in 
	nslookup/main.c,v 8.22 and later

>How-To-Repeat:
	execute:
	nslookup << END
	server l.root-servers.net.
	server a.root-server.net.
	server a.root-servers.net.
	END
>Fix:

--- contrib/bind/bin/nslookup/main.c~   Sat May 25 20:12:20 2002
+++ contrib/bind/bin/nslookup/main.c    Fri Jan 24 12:39:39 2003
@@ -611,7 +607,7 @@ SetDefaultServer(string, local)
	UnionFromAddr(&servAddr, defaultPtr->addrList[0]->addrType,
		      defaultPtr->addrList[0]->addr);
     } else {
-	UnionFromAddr(&servAddr, defaultPtr->addrList[0]->addrType,
+	UnionFromAddr(&servAddr, defaultPtr->servers[0]->addrList[0]->addrType,
		      defaultPtr->servers[0]->addrList[0]->addr);
	}


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301242229.h0OMTxWs003846>