1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

messages: Fix a possible segfault.

This commit is contained in:
Andreas Schneider
2013-06-17 13:02:49 +02:00
parent f31c33bb31
commit a65029da5d

View File

@@ -135,9 +135,11 @@ void ssh_message_queue(ssh_session session, ssh_message message){
} }
session->ssh_message_list = ssh_list_new(); session->ssh_message_list = ssh_list_new();
} }
if (session->ssh_message_list != NULL) {
ssh_list_append(session->ssh_message_list, message); ssh_list_append(session->ssh_message_list, message);
} }
} }
}
/** /**
* @internal * @internal