Don't use uninitialized values

This fixes a bunch or valgrind errors.
This commit is contained in:
Miroslav Lichvar
2009-10-07 15:11:09 +02:00
parent d06f02be1c
commit 183d56fd40
4 changed files with 10 additions and 2 deletions

View File

@@ -1158,6 +1158,8 @@ submit_request(CMD_Request *request, CMD_Reply *reply, int *reply_auth_ok)
request->utoken = htonl(SPECIAL_UTOKEN);
}
generate_auth(request);
} else {
memset(request->auth, 0, sizeof (request->auth));
}
command_length = PKL_CommandLength(request);