From: djm Date: Fri, 17 Apr 2015 04:32:31 +0000 (+0000) Subject: don't call record_login() in monitor when UseLogin is enabled; X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4765bf4442c7589f284566fe3211f0aacac56b2f;p=openbsd don't call record_login() in monitor when UseLogin is enabled; bz#278 reported by drk AT sgi.com; ok dtucker --- diff --git a/usr.bin/ssh/monitor.c b/usr.bin/ssh/monitor.c index e459ef90841..2fc01090980 100644 --- a/usr.bin/ssh/monitor.c +++ b/usr.bin/ssh/monitor.c @@ -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 * Copyright 2002 Markus Friedl @@ -1186,6 +1186,9 @@ mm_record_login(Session *s, struct passwd *pw) socklen_t fromlen; struct sockaddr_storage from; + if (options.use_login) + return; + /* * Get IP address of client. If the connection is not a socket, let * the address be 0.0.0.0.