Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Jun-ichiro itojun Hagino <itojun@netbsd.org>
List: source-changes
Date: 04/23/2000 19:53:07
Module Name:	basesrc
Committed By:	itojun
Date:		Mon Apr 24 02:53:06 UTC 2000

Modified Files:
	basesrc/usr.sbin/lpr/common_source: common.c

Log Message:
avoid NULL pointer access when rp=<ipv4 numberic address> (no ai_canonname).
From: hiro@takechi.org

XXX checkremote() should be improved.  gethostname -> getaddrinfo is
not the right thing to do, we cannot assume DNS FQDNs is configured
as hostname.  if the goal here is to check if it is really remote or not,
getifaddrs() is the way to go.


To generate a diff of this commit:
cvs rdiff -r1.18 -r1.19 basesrc/usr.sbin/lpr/common_source/common.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.