Patch fix-segfault for ssh2 Bug #66314
Patch version 2013-12-18 00:06 UTC
Return to Bug #66314 |
Download this patch
Patch Revisions:
Developer: yardenack@gmail.com
diff --git a/ssh2_fopen_wrappers.c b/ssh2_fopen_wrappers.c
index 39e196c..bedcd5b 100644
--- a/ssh2_fopen_wrappers.c
+++ b/ssh2_fopen_wrappers.c
@@ -218,14 +218,6 @@ php_url *php_ssh2_fopen_wraper_parse_path( char *path, char *type, php_stream_co
return NULL;
}
- /*
- Find resource->path in the path string, then copy the entire string from the original path.
- This includes ?query#fragment in the path string
- */
- s = resource->path;
- resource->path = estrdup(strstr(path, resource->path));
- efree(s);
-
/* Look for a resource ID to reuse a session */
s = resource->host;
if (strncmp(resource->host, "Resource id #", sizeof("Resource id #") - 1) == 0) {
|