X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Finspsocket.cpp;h=42e2640a624ef091d8db0266719c5bf9ea5d9bac;hb=5585654df265bc37d547fa7738e35cc7ae7dacbb;hp=709ad443bdf04a9f99cc44afb69b66dcaf18a7e6;hpb=b18e6b5556f2deedf6ebf154477c4d69dcf02638;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 709ad443b..42e2640a6 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -293,7 +293,7 @@ void StreamSocket::FlushSendQ(SendQueue& sq) const SendQueue::Element& elem = *i; iovecs[j].iov_base = const_cast(elem.data()); iovecs[j].iov_len = elem.length(); - rv_max += elem.length(); + rv_max += iovecs[j].iov_len; } rv = SocketEngine::WriteV(this, iovecs, bufcount); }