Skip to content

Commit a17559d

Browse files
committed
read 1 instead of 2 bytes. The next 2 bytes are 2 and thus not a problem
1 parent b3cd64a commit a17559d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysqlnd/mysqlnd_wireprotocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ php_mysqlnd_rset_field_read(void *_packet, MYSQLND *conn TSRMLS_DC)
982982
p += 2;
983983
BAIL_IF_NO_MORE_DATA;
984984

985-
meta->decimals = uint2korr(p);
985+
meta->decimals = uint1korr(p);
986986
p += 1;
987987
BAIL_IF_NO_MORE_DATA;
988988

0 commit comments

Comments
 (0)