Initialized password variable in login.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@176 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
3e65de1d4e
commit
4351885b80
@ -1,5 +1,6 @@
|
||||
Date Added
|
||||
11/14
|
||||
* Initialized password variable in login.c. [Valaris]
|
||||
* Added zeny_from_mobs option. [Valaris]
|
||||
* Corrected the file type attribute on most of the files in three which fixes the
|
||||
newline issues between linux and dos [MouseJstr]
|
||||
|
@ -3059,7 +3059,7 @@ int parse_login(int fd) {
|
||||
} else {
|
||||
struct login_session_data *ld = session[fd]->session_data;
|
||||
if (RFIFOW(fd,2) == 0) { // non encrypted password
|
||||
unsigned char* password;
|
||||
unsigned char* password="";
|
||||
memcpy(password, RFIFOP(fd,4), 24);
|
||||
password[24] = '\0';
|
||||
remove_control_chars(password);
|
||||
|
Loading…
x
Reference in New Issue
Block a user