summaryrefslogtreecommitdiffhomepage
path: root/svr-auth.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-02-28 21:40:08 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-02-28 21:40:08 +0800
commitc658b275fd01fa62eea135742c623dba5f39845c (patch)
tree3381eaf5a73610d212dd007d3f9994970bd874f9 /svr-auth.c
parent9bbce01e1b9d6b42869bbba9f36d6849a42276fe (diff)
- #if not #ifdef for DROPBEAR_FUZZ
- fix some unused variables --HG-- branch : fuzz
Diffstat (limited to 'svr-auth.c')
-rw-r--r--svr-auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-auth.c b/svr-auth.c
index 7b400d1..bc893f9 100644
--- a/svr-auth.c
+++ b/svr-auth.c
@@ -312,7 +312,7 @@ static int checkusername(const char *username, unsigned int userlen) {
return DROPBEAR_FAILURE;
}
}
-#endif HAVE_GETGROUPLIST
+#endif
TRACE(("shell is %s", ses.authstate.pw_shell))
@@ -395,7 +395,7 @@ void send_msg_userauth_failure(int partial, int incrfail) {
genrandom((unsigned char*)&delay, sizeof(delay));
/* We delay for 300ms +- 50ms */
delay = 250000 + (delay % 100000);
-#ifdef DROPBEAR_FUZZ
+#if DROPBEAR_FUZZ
if (!fuzz.fuzzing) {
usleep(delay);
}