Skip to content
Snippets Groups Projects
Commit 8db8e787 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Zero-Iniitalize err_len

If call to GetAttributeString() fails, err_len can contain garbage.
parent 9db2d372
No related branches found
No related tags found
No related merge requests found
Pipeline #5770 passed
......@@ -49,7 +49,7 @@ cryptlib_error_message(int status, const char *msg)
char str[64];
char str2[64];
char *errmsg;
int err_len;
int err_len = 0;
sprintf(str, "Error %d %s\r\n\r\n", status, msg);
pthread_mutex_lock(&ssh_mutex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment