[PATCH] Dereferencing the NULL pointer.

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Signed-off-by: krishnaiah bommu <krishnaiah.bommu@xxxxxxxxx>
---
 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

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux