File php5-ssh2-stream-segfault-fix.patch of Package php5-ssh2
x
1
--- ssh2_fopen_wrappers.c.orig 2008-04-24 14:12:31.000000000 +0200
2
+++ ssh2_fopen_wrappers.c 2008-04-24 14:13:07.000000000 +0200
3
4
5
resource = php_url_parse(path);
6
7
+ if (!resource) {
8
+ return NULL;
9
+ }
10
+
11
if (strncmp(resource->scheme, "ssh2.", sizeof("ssh2.") - 1)) {
12
/* Not an ssh wrapper */
13
php_url_free(resource);
14