Commit 8a076d2c authored by Pontus Freyhult's avatar Pontus Freyhult
Browse files

A_WRITE consumes what we give it, so we must dup self->msg before feeding it.

Rev: src/io_commands.c:1.52
parent dc8a4e7d
......@@ -449,7 +449,7 @@ do_tcp_wrapper(struct command *s UNUSED,
io_write(lv->fd, 1024, NULL);
A_WRITE(&lv->fd->write_buffer->super,
self->msg);
lsh_string_dup(self->msg));
close_fd_nicely(lv->fd);
......
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