Skip to content

Commit

Permalink
Merge branch '3.1' into 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed May 2, 2023
2 parents 374f0ee + a3bba46 commit 85b7bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmariadb/mariadb_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ unpack_fields(const MYSQL *mysql,
for (i=0; i < field_count; i++)
{
uint length= (uint)(row->data[i+1] - row->data[i] - 1);
if (!row->data[i] && row->data[i][length])
if (!row->data[i] || row->data[i][length])
goto error;

*(char **)(((char *)field) + rset_field_offsets[i*2])=
Expand Down

0 comments on commit 85b7bde

Please sign in to comment.