mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 10:40:28 +09:00
Add NULL check to ssh_message_free().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@384 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -457,6 +457,9 @@ int ssh_message_reply_default(SSH_MESSAGE *msg){
|
||||
}
|
||||
|
||||
void ssh_message_free(SSH_MESSAGE *msg){
|
||||
if (msg == NULL) {
|
||||
return;
|
||||
}
|
||||
switch(msg->type){
|
||||
case SSH_AUTH_REQUEST:
|
||||
if(msg->auth_request.username)
|
||||
|
||||
Reference in New Issue
Block a user