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,7 +135,9 @@ void ssh_message_queue(ssh_session session, ssh_message message){
}
session->ssh_message_list = ssh_list_new();
}
ssh_list_append(session->ssh_message_list, message);
if (session->ssh_message_list != NULL) {
ssh_list_append(session->ssh_message_list, message);
}
}
}