Skip to content

Commit

Permalink
Fix binary security of table keys (#3842)
Browse files Browse the repository at this point in the history
  • Loading branch information
twose authored Nov 16, 2020
1 parent 9ef0648 commit a6bcc4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext-src/swoole_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ static PHP_METHOD(swoole_table, key) {
TableRow *row = table->current();
if (row) {
row->lock();
RETVAL_STRING(row->key);
RETVAL_STRINGL(row->key, row->key_len);
row->unlock();
} else {
RETURN_NULL();
Expand Down

0 comments on commit a6bcc4c

Please sign in to comment.