diff options
Diffstat (limited to 'src/ssl/tls_server.cpp')
-rw-r--r-- | src/ssl/tls_server.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ssl/tls_server.cpp b/src/ssl/tls_server.cpp index 2a84fa063..8d9cc1b43 100644 --- a/src/ssl/tls_server.cpp +++ b/src/ssl/tls_server.cpp @@ -239,7 +239,7 @@ void TLS_Server::state_machine() else if(rec_type == APPLICATION_DATA) { if(active) - read_buf.write(record, record.size()); + read_buf.write(&record[0], record.size()); else throw Unexpected_Message("Application data before handshake done"); } @@ -273,7 +273,7 @@ void TLS_Server::read_handshake(byte rec_type, { if(!state) state = new Handshake_State; - state->queue.write(rec_buf, rec_buf.size()); + state->queue.write(&rec_buf[0], rec_buf.size()); } while(true) @@ -295,7 +295,7 @@ void TLS_Server::read_handshake(byte rec_type, type = static_cast<Handshake_Type>(head[0]); contents.resize(length); state->queue.read(head, 4); - state->queue.read(contents, contents.size()); + state->queue.read(&contents[0], contents.size()); } } } |