Bugzilla – Attachment 1581 Details for
Bug 1539
double-free when failing to parse a forwarding specification given using ~C
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix double-free if parsing forwarding specification fails
cmdline-forward.diff (text/plain), 633 bytes, created by
Colin Watson
on 2008-11-24 01:42:42 AEDT
(
hide
)
Description:
fix double-free if parsing forwarding specification fails
Filename:
MIME Type:
Creator:
Colin Watson
Created:
2008-11-24 01:42:42 AEDT
Size:
633 bytes
patch
obsolete
>Index: readconf.c >=================================================================== >RCS file: /cvs/openssh/readconf.c,v >retrieving revision 1.149 >diff -p -u -r1.149 readconf.c >--- readconf.c 5 Nov 2008 05:30:06 -0000 1.149 >+++ readconf.c 23 Nov 2008 14:37:32 -0000 >@@ -1293,9 +1293,13 @@ parse_forward(Forward *fwd, const char * > return (i); > > fail_free: >- if (fwd->connect_host != NULL) >+ if (fwd->connect_host != NULL) { > xfree(fwd->connect_host); >- if (fwd->listen_host != NULL) >+ fwd->connect_host = NULL; >+ } >+ if (fwd->listen_host != NULL) { > xfree(fwd->listen_host); >+ fwd->listen_host = NULL; >+ } > return (0); > }
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 1539
: 1581