Signed-off-by: krishnaiah bommu <krishnaiah.bommu at intel.com> --- packet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packet.c b/packet.c index 817da43..660b020 100644 --- a/packet.c +++ b/packet.c @@ -2617,6 +2617,8 @@ ssh_packet_send_mux(struct ssh *ssh) if (len < 6) return SSH_ERR_INTERNAL_ERROR; cp = sshbuf_mutable_ptr(state->outgoing_packet); + if (cp == NULL) + return -1; type = cp[5]; if (ssh_packet_log_type(type)) debug3("%s: type %u", __func__, type); -- 2.7.4