mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
session: Fix ssh_free() with NULL argument.
This commit is contained in:
@@ -157,11 +157,11 @@ err:
|
||||
*/
|
||||
void ssh_free(ssh_session session) {
|
||||
int i;
|
||||
enter_function();
|
||||
|
||||
if (session == NULL) {
|
||||
return;
|
||||
}
|
||||
enter_function();
|
||||
|
||||
SAFE_FREE(session->serverbanner);
|
||||
SAFE_FREE(session->clientbanner);
|
||||
|
||||
Reference in New Issue
Block a user