Skip to content
Snippets Groups Projects
Commit 4b1bee31 authored by deuce's avatar deuce
Browse files

Zero first variable rather than use a partially initialized structure.

parent 419740b9
No related branches found
No related tags found
No related merge requests found
......@@ -2734,13 +2734,15 @@ void DLLCALL loginSuccess(link_list_t* list, SOCKADDR_IN* addr)
ulong DLLCALL loginFailure(link_list_t* list, SOCKADDR_IN* addr, const char* prot, const char* user, const char* pass)
{
list_node_t* node;
login_attempt_t first={0};
login_attempt_t first;
login_attempt_t* attempt=&first;
ulong count=0;
if(list==NULL)
return 0;
memset(&first, 0, sizeof(first));
listLock(list);
if((node=login_attempted(list, addr)) != NULL) {
attempt=node->data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment