summaryrefslogtreecommitdiff
path: root/auth2-chall.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2-chall.c')
-rw-r--r--auth2-chall.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/auth2-chall.c b/auth2-chall.c
index 12e3cc93..aacbf0bc 100644
--- a/auth2-chall.c
+++ b/auth2-chall.c
@@ -326,6 +326,9 @@ input_userauth_info_response(int type, u_int32_t seq, void *ctxt)
void
privsep_challenge_enable(void)
{
+#if defined(BSD_AUTH) || defined(USE_PAM) || defined(SKEY)
+ int n = 0;
+#endif
#ifdef BSD_AUTH
extern KbdintDevice mm_bsdauth_device;
#endif
@@ -335,7 +338,6 @@ privsep_challenge_enable(void)
#ifdef SKEY
extern KbdintDevice mm_skey_device;
#endif
- int n = 0;
#ifdef BSD_AUTH
devices[n++] = &mm_bsdauth_device;