summaryrefslogtreecommitdiff
path: root/ext/standard/base64.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-06-27 21:45:06 +0000
committerSascha Schumann <sas@php.net>1999-06-27 21:45:06 +0000
commite205a6749dae3092a454e5db8371abb4a819f0e0 (patch)
tree99bb899d9b9016619be1587c60441f29c6ac404f /ext/standard/base64.c
parentd819da4897cdd19e420208cb26527f1c6b5d9955 (diff)
downloadphp-git-e205a6749dae3092a454e5db8371abb4a819f0e0.tar.gz
more porting
Diffstat (limited to 'ext/standard/base64.c')
-rw-r--r--ext/standard/base64.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/standard/base64.c b/ext/standard/base64.c
index 69bdb9d4fa..878b7244fc 100644
--- a/ext/standard/base64.c
+++ b/ext/standard/base64.c
@@ -92,10 +92,7 @@ unsigned char *_php3_base64_decode(const unsigned char *string, int length, int
while ((ch = *current++) != '\0') {
if (ch == base64_pad) break;
ch = (int)strchr(base64_table, ch);
- if (ch == 0) {
- efree(result);
- return NULL;
- }
+ if (ch == 0) continue;
ch -= (int)base64_table;
switch(i % 4) {