diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-10 17:45:05 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-10 17:45:05 -0800 |
| commit | ecacdf27a9ad2c15d300a8d61fd0c560030e81dd (patch) | |
| tree | bdaf5c4ef5c08ffc3b48622e2b40569fafdcafd9 | |
| parent | aad6f79efa9a335f13274232519b65d90f3cd672 (diff) | |
| download | infinitytier-ecacdf27a9ad2c15d300a8d61fd0c560030e81dd.tar.gz infinitytier-ecacdf27a9ad2c15d300a8d61fd0c560030e81dd.zip | |
Build fix (typo)
| -rw-r--r-- | node/Packet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Packet.cpp b/node/Packet.cpp index aaceb9aa..fa1b9cf4 100644 --- a/node/Packet.cpp +++ b/node/Packet.cpp @@ -2025,7 +2025,7 @@ bool Packet::dearmor(const void *key) void Packet::cryptField(const void *key,unsigned int start,unsigned int len) { - const uint8_t *const data = reinterpret_cast<const uint8_t *>(data()); + const uint8_t *const data = reinterpret_cast<const uint8_t *>(unsafeData()); uint8_t iv[8]; for(int i=0;i<8;++i) iv[i] = data[i]; iv[7] &= 0xf8; // mask off least significant 3 bits of packet ID / IV since this is unset when this function gets called |
