summaryrefslogtreecommitdiff
path: root/src/proxy.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2017-09-26 14:41:57 +0200
committerJoel Klinghed <the_jk@opera.com>2017-09-26 14:43:13 +0200
commit8a1e1a8c952f681d0d20ba9ae16f117940e16965 (patch)
tree67375eddf1f540d761796a0ff80be5033d1534a0 /src/proxy.cc
parent4bc57e1aff741f2bad1884574c8fe29b51ee5f16 (diff)
Fix error in DAT package sent for empty packages
Also made sure that if this happens again monitor.cc should at least not hang but assert and break instead
Diffstat (limited to 'src/proxy.cc')
-rw-r--r--src/proxy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proxy.cc b/src/proxy.cc
index b8df00c..e68645f 100644
--- a/src/proxy.cc
+++ b/src/proxy.cc
@@ -1942,7 +1942,7 @@ void ProxyImpl::send_attached_data(uint32_t id, void const* ptr, size_t size,
if (size == 0) {
assert(last);
assert(ptr == nullptr);
- write_u16(data + 3, 10);
+ write_u16(data + 3, 22);
data[9] = 0;
send_attached(data, 22, nullptr, 0);
} else {