NULL check before calling session_handshake
@@ -61,7 +61,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
libssh2_session_set_blocking(session, 1);
}
- if(libssh2_session_handshake(session, socket_fds[0])) {
+ if(session && libssh2_session_handshake(session, socket_fds[0])) {
goto EXIT_LABEL;
}
