Bugzilla – Attachment 2948 Details for
Bug 2683
memory leak in ssh_packet_read_seqnr
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The fix for master branch at commit id d5499190559ebe374bcdfa8805408646ceffad64
0001-Fix-a-memory-leak-in-ssh_packet_read_seqnr.patch (text/plain), 859 bytes, created by
Tom
on 2017-02-26 06:59:30 AEDT
(
hide
)
Description:
The fix for master branch at commit id d5499190559ebe374bcdfa8805408646ceffad64
Filename:
MIME Type:
Creator:
Tom
Created:
2017-02-26 06:59:30 AEDT
Size:
859 bytes
patch
obsolete
>From 3d925c9af464c183ba2acc0cf47897c8ae63f0f8 Mon Sep 17 00:00:00 2001 >From: Tom Rix <trix@juniper.net> >Date: Sun, 26 Feb 2017 01:46:35 -0600 >Subject: [PATCH] Fix a memory leak in ssh_packet_read_seqnr > >Change the error handling of SSH_ERR_CON_TIMEOUT to be >consitent with the other error handling. This fixes a >memory leak with setp. >--- > packet.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/packet.c b/packet.c >index 94e8460..da22399 100644 >--- a/packet.c >+++ b/packet.c >@@ -1466,8 +1466,10 @@ ssh_packet_read_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) > break; > } > } >- if (r == 0) >- return SSH_ERR_CONN_TIMEOUT; >+ if (r == 0) { >+ r = SSH_ERR_CONN_TIMEOUT; >+ goto out; >+ } > /* Read data from the socket. */ > len = read(state->connection_in, buf, sizeof(buf)); > if (len == 0) { >-- >2.3.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2683
: 2948