aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/cert_req.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssl/cert_req.cpp')
-rw-r--r--src/ssl/cert_req.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssl/cert_req.cpp b/src/ssl/cert_req.cpp
index 7a7e6eed9..7a32af03b 100644
--- a/src/ssl/cert_req.cpp
+++ b/src/ssl/cert_req.cpp
@@ -131,7 +131,7 @@ void Certificate::deserialize(const MemoryRegion<byte>& buf)
u32bit total_size = make_u32bit(0, buf[0], buf[1], buf[2]);
SecureQueue queue;
- queue.write(buf + 3, buf.size() - 3);
+ queue.write(&buf[3], buf.size() - 3);
if(queue.size() != total_size)
throw Decoding_Error("Certificate: Message malformed");