Commit 32039398 authored by hf@deer.(none)'s avatar hf@deer.(none)

Fix for #2211 (field->def contains invalid values)

parent a0529097
...@@ -612,8 +612,8 @@ bool Protocol::send_fields(List<Item> *list, uint flag) ...@@ -612,8 +612,8 @@ bool Protocol::send_fields(List<Item> *list, uint flag)
} }
else else
{ {
client_field->def= strdup_root(field_alloc, tmp.ptr()); client_field->def= strdup_root(field_alloc, res->ptr());
client_field->def_length= tmp.length(); client_field->def_length= res->length();
} }
} }
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment