Skip to content

Commit

Permalink
remove static keyword from auth_debug declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
tgauth committed May 9, 2023
1 parent 6d4b212 commit 6c60b64
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,14 @@ extern struct passwd *privsep_pw;
extern struct sshauthopt *auth_opts;

/* Debugging messages */
static struct sshbuf *auth_debug;
#ifdef WINDOWS
/* removing static declaration due to access
violation thrown when compiling with platform
toolsets newer than v140 (VS2017 or above) */
struct sshbuf *auth_debug;
#else
static struct sshbuf *auth_debug;
#endif

/*
* Check if the user is allowed to log in via ssh. If user is listed
Expand Down

0 comments on commit 6c60b64

Please sign in to comment.