Fix avro CREATE TABLE message

The string was assumed to be null-terminated when in reality it was not.
This commit is contained in:
Markus Mäkelä
2017-07-04 12:21:25 +03:00
parent 5c50045227
commit 5ed6483f01
3 changed files with 4 additions and 4 deletions

View File

@ -1040,7 +1040,7 @@ void handle_query_event(AVRO_INSTANCE *router, REP_HEADER *hdr, int *pending_tra
}
else
{
created = table_create_alloc(sql, db);
created = table_create_alloc(sql, len, db);
}
if (created && !save_and_replace_table_create(router, created))