X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=src%2Flibswift%2Fchannel.cpp;h=ef30addc05e2e26852b61b6daa24fd9c8e01c294;hb=45ee60cc6bc8ba52c1dbc4784cf61291a90c97f9;hp=2d9640cc501937b73578d7bdafd86a73c2c95fa2;hpb=9fff97c21ccb800b89e1e332d0187728e501d02a;p=swifty.git diff --git a/src/libswift/channel.cpp b/src/libswift/channel.cpp index 2d9640c..ef30add 100644 --- a/src/libswift/channel.cpp +++ b/src/libswift/channel.cpp @@ -323,8 +323,8 @@ int Channel::RecvFrom (evutil_socket_t sock, Address& addr, struct evbuffer **ev } length = 0; for (int i=0; icount; ++i) { - length += iov[i].iov_len; - vec[i].iov_len = iov[i].iov_len; + length += addr.addr->dests[i].bytes; + vec[i].iov_len = addr.addr->dests[i].bytes; if (evbuffer_commit_space(evb[i], &vec[i], 1) < 0) { length = 0; print_error("error on evbuffer_commit_space");