Skip to content
Snippets Groups Projects
Commit 949d6737 authored by Mergen Imeev's avatar Mergen Imeev Committed by Vladimir Davydov
Browse files

box: add missing diag_set to port_tuple_dump_msgpack

Not really critical as obuf_alloc() fails only on OOM, i.e. never in
practice.
parent c5c1a389
No related branches found
No related tags found
No related merge requests found
......@@ -113,8 +113,11 @@ port_tuple_dump_msgpack(struct port *base, struct obuf *out)
{
struct port_tuple *port = port_tuple(base);
char *size_buf = obuf_alloc(out, mp_sizeof_array(port->size));
if (size_buf == NULL)
if (size_buf == NULL) {
diag_set(OutOfMemory, mp_sizeof_array(port->size), "obuf_alloc",
"size_buf");
return -1;
}
mp_encode_array(size_buf, port->size);
if (port_tuple_dump_msgpack_16(base, out) < 0)
return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment