Skip to content

Commit 7e7817b

Browse files
Mikhail Galaninnielsdos
Mikhail Galanin
authored andcommitted
Avoid using uninitialised struct
Closes phpGH-12046.
1 parent d404e1d commit 7e7817b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ PHP NEWS
2020
- LibXML:
2121
. Fixed bug GH-12702 (libxml2 2.12.0 issue building from src). (nono303)
2222

23+
- MySQLnd:
24+
. Avoid using uninitialised struct. (mikhainin)
25+
2326
- OpenSSL:
2427
. Fixed bug #50713 (openssl_pkcs7_verify() may ignore untrusted CAs).
2528
(Jakub Zelenka)

ext/mysqlnd/mysqlnd_result.c

Lines changed: 1 addition & 1 deletion
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)