From 4bb1dd3166c2a04394e9ec55fdff6bf6ad667e39 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 18 Nov 2003 22:01:25 +1100 Subject: [PATCH] - (djm) OpenBSD CVS Sync - dtucker@cvs.openbsd.org 2003/11/18 00:40:05 [serverloop.c] Correct check for authctxt->valid. ok djm@ --- ChangeLog | 10 +++++++--- serverloop.c | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0f20d071a..f728c801a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,9 +2,13 @@ - (djm) Fix early exit for root auth success when UsePAM=yes and PermitRootLogin=no - (dtucker) [auth-pam.c] Convert chauthtok_conv into a generic tty_conv, - and use it for do_pam_session. Fixes problems like pam_motd not displaying - anything. ok djm@ + and use it for do_pam_session. Fixes problems like pam_motd not + displaying anything. ok djm@ - (dtucker) [auth-pam.c] Only use pam_putenv if our platform has it. ok djm@ + - (djm) OpenBSD CVS Sync + - dtucker@cvs.openbsd.org 2003/11/18 00:40:05 + [serverloop.c] + Correct check for authctxt->valid. ok djm@ 20031117 - (djm) OpenBSD CVS Sync @@ -1480,4 +1484,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.3115 2003/11/18 01:45:35 dtucker Exp $ +$Id: ChangeLog,v 1.3116 2003/11/18 11:01:25 djm Exp $ diff --git a/serverloop.c b/serverloop.c index 98793b756..20255aaee 100644 --- a/serverloop.c +++ b/serverloop.c @@ -35,7 +35,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: serverloop.c,v 1.112 2003/11/04 08:54:09 djm Exp $"); +RCSID("$OpenBSD: serverloop.c,v 1.113 2003/11/18 00:40:05 dtucker Exp $"); #include "xmalloc.h" #include "packet.h" @@ -973,7 +973,7 @@ server_input_global_request(int type, u_int32_t seq, void *ctxt) u_short listen_port; pw = the_authctxt->pw; - if (pw == NULL || !the_authctxt->pw) + if (pw == NULL || !the_authctxt->valid) fatal("server_input_global_request: no/invalid user"); listen_address = packet_get_string(NULL); listen_port = (u_short)packet_get_int();