mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
upstream commit
don't call record_login() in monitor when UseLogin is enabled; bz#278 reported by drk AT sgi.com; ok dtucker
This commit is contained in:
parent
40132ff87b
commit
17d4d9d9fb
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: monitor.c,v 1.145 2015/02/20 22:17:21 djm Exp $ */
|
/* $OpenBSD: monitor.c,v 1.146 2015/04/17 04:32:31 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
|
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
|
||||||
* Copyright 2002 Markus Friedl <markus@openbsd.org>
|
* Copyright 2002 Markus Friedl <markus@openbsd.org>
|
||||||
@ -1474,6 +1474,9 @@ mm_record_login(Session *s, struct passwd *pw)
|
|||||||
socklen_t fromlen;
|
socklen_t fromlen;
|
||||||
struct sockaddr_storage from;
|
struct sockaddr_storage from;
|
||||||
|
|
||||||
|
if (options.use_login)
|
||||||
|
return;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get IP address of client. If the connection is not a socket, let
|
* Get IP address of client. If the connection is not a socket, let
|
||||||
* the address be 0.0.0.0.
|
* the address be 0.0.0.0.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user