mirror of https://github.com/postgres/postgres
Fix missing parentheses resulting in wrong order of dereference.
This could result in referencing uninitialized memory. Michael Paquier, in response to a complaint from Andres Freund
This commit is contained in:
parent
b5763cedde
commit
d02c0ddb15
|
@ -2156,7 +2156,7 @@ toast_open_indexes(Relation toastrel,
|
|||
/* Fetch the first valid index in list */
|
||||
for (i = 0; i < *num_indexes; i++)
|
||||
{
|
||||
Relation toastidx = *toastidxs[i];
|
||||
Relation toastidx = (*toastidxs)[i];
|
||||
if (toastidx->rd_index->indisvalid)
|
||||
{
|
||||
res = i;
|
||||
|
|
Loading…
Reference in New Issue