summaryrefslogtreecommitdiffstats
path: root/65.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-12-29 08:01:28 +0100
committerRemi Collet <remi@remirepo.net>2020-12-29 08:01:28 +0100
commit2f5dc746811d449d4dc489c1abfa2c1f2f1becf2 (patch)
tree944b827bc85af166195637397c4a3c541f85eee3 /65.patch
parenta0335945f34fc19f118c05241565f5e4d6c509cc (diff)
update to 1.0.1
drop patches merged upstream
Diffstat (limited to '65.patch')
-rw-r--r--65.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/65.patch b/65.patch
deleted file mode 100644
index 43fed80..0000000
--- a/65.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From d3afedb016aa319246177a3c516ca4804f08dd45 Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@remirepo.net>
-Date: Fri, 22 Feb 2019 15:19:18 +0100
-Subject: [PATCH] fix string free
-
----
- .gitignore | 2 ++
- smbclient.c | 6 ++++--
- 2 files changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/smbclient.c b/smbclient.c
-index 81ebd5a..faeb505 100644
---- a/smbclient.c
-+++ b/smbclient.c
-@@ -1345,15 +1345,17 @@ PHP_FUNCTION(smbclient_read)
-
- if ((ZSTR_LEN(buf) = smbc_read(state->ctx, file, ZSTR_VAL(buf), count)) >= 0) {
- RETURN_STR(buf);
-+ }
-+ zend_string_release(buf);
- #else
- void *buf = emalloc(count);
- ssize_t nbytes;
-
- if ((nbytes = smbc_read(state->ctx, file, buf, count)) >= 0) {
- RETURN_STRINGL(buf, nbytes, 0);
--#endif
- }
- efree(buf);
-+#endif
- switch (state->err = errno) {
- case EISDIR: php_error(E_WARNING, "Read error: Is a directory"); break;
- case EBADF: php_error(E_WARNING, "Read error: Not a valid file resource or not open for reading"); break;
-@@ -1738,7 +1740,7 @@ PHP_FUNCTION(smbclient_removexattr)
- PHP_FUNCTION(smbclient_option_get)
- {
- zend_long option;
-- char *ret;
-+ const char *ret;
- zval *zstate;
- php_smbclient_state *state;
-