server session BUGFIX wrong variable
diff --git a/src/session_server_ssh.c b/src/session_server_ssh.c
index 2d0f5d6..c0ea654 100644
--- a/src/session_server_ssh.c
+++ b/src/session_server_ssh.c
@@ -1139,7 +1139,7 @@
             return -1;
         }
 
-        if (session->opts.server.ssh_auth_attempts >= opts->auth_attempts) {
+        if (session->ssh_auth_attempts >= opts->auth_attempts) {
             ERR("Too many failed authentication attempts of user \"%s\".", session->username);
             return -1;
         }