Skip to content

Commit ebb4488

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Avoid using uninitialised struct
2 parents c572613 + 7e7817b commit ebb4488

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ PHP NEWS
2424
- LibXML:
2525
. Fixed bug GH-12702 (libxml2 2.12.0 issue building from src). (nono303)
2626

27+
- MySQLnd:
28+
. Avoid using uninitialised struct. (mikhainin)
29+
2730
- OpenSSL:
2831
. Fixed bug #50713 (openssl_pkcs7_verify() may ignore untrusted CAs).
2932
(Jakub Zelenka)

ext/mysqlnd/mysqlnd_result.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ mysqlnd_query_read_result_set_header(MYSQLND_CONN_DATA * conn, MYSQLND_STMT * s)
346346
}
347347
MYSQLND_INC_CONN_STATISTIC(conn->stats, statistic);
348348
}
349+
PACKET_FREE(&fields_eof);
349350
} while (0);
350-
PACKET_FREE(&fields_eof);
351351
break; /* switch break */
352352
}
353353
} while (0);

0 commit comments

Comments
 (0)