com php-src: fix macro: ext/openssl/xp_ssl.c
| From: | Anatol Belski | Date: | Mon, 04 Aug 2014 07:28:36 +0000 |
| Subject: | com php-src: fix macro: ext/openssl/xp_ssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-79714@lists.php.net to get a copy of this message | ||
Commit: dccbb794451c506e0ec645347096c27ac8fefc63
Author: Anatol Belski <ab@php.net> Mon, 4 Aug 2014 09:28:36 +0200
Parents: 860f0ca1aac3c389565011580fcfa8a2f5b54bc6
Branches: str_size_and_int64_56_backport
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=dccbb794451c506e0ec645347096c27ac8fefc63
Log:
fix macro
Changed paths:
M ext/openssl/xp_ssl.c
Diff:
diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c
index 8e13837..22c3618 100644
--- a/ext/openssl/xp_ssl.c
+++ b/ext/openssl/xp_ssl.c
@@ -284,7 +284,7 @@ static zend_bool php_x509_fingerprint_match(X509 *peer, zval *val TSRMLS_DC)
if (Z_TYPE_P(val) == IS_STRING) {
const char *method = NULL;
- switch (Z_STRLEN_P(val)) {
+ switch (Z_STRSIZE_P(val)) {
case 32:
method = "md5";
break;