summaryrefslogtreecommitdiff
path: root/auth-options.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-03-07 23:05:17 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-03-07 23:05:17 +1100
commitcd70e1b8137023539df57b175b733341d8f4d776 (patch)
tree03efa18fa906f725b07eee451fe96ec9117a3138 /auth-options.c
parentac0c4c9c1d511839b2c86ebe5994298b524ceffd (diff)
- dtucker@cvs.openbsd.org 2010/03/07 11:57:13
[auth-rhosts.c monitor.c monitor_wrap.c session.c auth-options.c sshd.c] Hold authentication debug messages until after successful authentication. Fixes an info leak of environment variables specified in authorized_keys, reported by Jacob Appelbaum. ok djm@
Diffstat (limited to 'auth-options.c')
-rw-r--r--auth-options.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/auth-options.c b/auth-options.c
index bcf5589d7..129301765 100644
--- a/auth-options.c
+++ b/auth-options.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth-options.c,v 1.47 2010/03/04 23:27:25 djm Exp $ */ 1/* $OpenBSD: auth-options.c,v 1.48 2010/03/07 11:57:13 dtucker Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -78,7 +78,6 @@ auth_clear_options(void)
78 } 78 }
79 forced_tun_device = -1; 79 forced_tun_device = -1;
80 channel_clear_permitted_opens(); 80 channel_clear_permitted_opens();
81 auth_debug_reset();
82} 81}
83 82
84/* 83/*
@@ -364,9 +363,6 @@ next_option:
364 /* Process the next option. */ 363 /* Process the next option. */
365 } 364 }
366 365
367 if (!use_privsep)
368 auth_debug_send();
369
370 /* grant access */ 366 /* grant access */
371 return 1; 367 return 1;
372 368
@@ -376,9 +372,6 @@ bad_option:
376 auth_debug_add("Bad options in %.100s file, line %lu: %.50s", 372 auth_debug_add("Bad options in %.100s file, line %lu: %.50s",
377 file, linenum, opts); 373 file, linenum, opts);
378 374
379 if (!use_privsep)
380 auth_debug_send();
381
382 /* deny access */ 375 /* deny access */
383 return 0; 376 return 0;
384} 377}