Subject: Re: bin/32873
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Johan Veenhuizen <veenhuizen@users.sourceforge.net>
List: netbsd-bugs
Date: 02/20/2006 04:40:02
The following reply was made to PR bin/32873; it has been noted by GNATS.
From: Johan Veenhuizen <veenhuizen@users.sourceforge.net>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/32873
Date: Mon, 20 Feb 2006 04:33:17 +0100 (CET)
Since the following change was committed to login.c, it should
probably be committed to login_pam.c as well.
--- src/usr.bin/login/login_pam.c 19 Feb 2006 00:12:36 -0000
+++ src/usr.bin/login/login_pam.c 20 Feb 2006 03:10:03 -0000
@@ -767,7 +767,8 @@
}
if (hostname != NULL && have_ss == 0) {
socklen_t len = sizeof(ss);
- (void)getpeername(STDIN_FILENO, (struct sockaddr *)&ss, &len);
+ have_ss = getpeername(STDIN_FILENO, (struct sockaddr *)&ss,
+ &len) != -1;
}
(void)gettimeofday(&now, NULL);
}