aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/rec_wri.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-14 02:05:05 +0000
committerlloyd <[email protected]>2010-09-14 02:05:05 +0000
commit77a33b0c16880884cc0326e92c0c30d0e8444a91 (patch)
treedf2d917b312abb79c8654558399521366dbb2d14 /src/ssl/rec_wri.cpp
parent59a9b0ef260b010606edc3384035b6aa12dd6415 (diff)
More changes to avoid vector to pointer implicit conversions
Diffstat (limited to 'src/ssl/rec_wri.cpp')
-rw-r--r--src/ssl/rec_wri.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ssl/rec_wri.cpp b/src/ssl/rec_wri.cpp
index d983fd363..607fe7b01 100644
--- a/src/ssl/rec_wri.cpp
+++ b/src/ssl/rec_wri.cpp
@@ -140,7 +140,7 @@ void Record_Writer::send(byte type, const byte input[], u32bit length)
buffer.copy(buf_pos, input, length);
if(buf_pos + length >= BUFFER_SIZE)
{
- send_record(buf_type, buffer, length);
+ send_record(buf_type, &buffer[0], length);
input += (BUFFER_SIZE - buf_pos);
length -= (BUFFER_SIZE - buf_pos);
while(length >= BUFFER_SIZE)
@@ -237,7 +237,7 @@ void Record_Writer::send_record(byte type, const byte buf[], u32bit length)
SecureVector<byte> output = cipher.read_all(Pipe::LAST_MESSAGE);
- send_record(type, major, minor, output, output.size());
+ send_record(type, major, minor, &output[0], output.size());
seq_no++;
}