Commit 6b2a0205 authored by Pavel Emelyanov's avatar Pavel Emelyanov

tcp: Fix queue contents restore

The wrong descriptor was passed to the read_img_buf.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 08788c83
......@@ -360,7 +360,7 @@ static int send_tcp_queue(int sk, int queue, u32 len, int imgfd)
if (!buf)
return -1;
if (read_img_buf(sk, buf, len) < 0)
if (read_img_buf(imgfd, buf, len) < 0)
return -1;
ret = send(sk, buf, len, 0);
......
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