summaryrefslogtreecommitdiff
path: root/src/login/login.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/login.c')
-rw-r--r--src/login/login.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/login.c b/src/login/login.c
index 5736963d3..4e1870163 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -2994,7 +2994,8 @@ int parse_login(int fd) {
session[fd]->eof = 1;
return 0;
}
- ld = (struct login_session_data*)session[fd]->session_data = (struct login_session_data*)aCalloc(1, sizeof(struct login_session_data));
+ ld = (struct login_session_data*)aCalloc(1, sizeof(struct login_session_data));
+ session[fd]->session_data = ld;
if (!ld) {
printf("login: Request for md5 key: memory allocation failure (malloc)!\n");
session[fd]->eof = 1;