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