Skip to content

Commit dccbb79

Browse files
committed
fix macro
1 parent 860f0ca commit dccbb79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/xp_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ static zend_bool php_x509_fingerprint_match(X509 *peer, zval *val TSRMLS_DC)
284284
if (Z_TYPE_P(val) == IS_STRING) {
285285
const char *method = NULL;
286286

287-
switch (Z_STRLEN_P(val)) {
287+
switch (Z_STRSIZE_P(val)) {
288288
case 32:
289289
method = "md5";
290290
break;

0 commit comments

Comments
 (0)