diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-11-04 08:04:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-11-04 08:04:36 +0000 |
commit | ed27687177b38da2b0bc43b2e01fcb2034751935 (patch) | |
tree | 5cece6ccc1a38d35e766bd044802c68a2022b61c | |
parent | e043a1223dba07f8103764b91495c0da3aa57a29 (diff) | |
parent | a7aaf5c89ec49efa145fb8959414c006ef7959ae (diff) |
Merge "[HICN-356] Fix uninitialized pointer"
-rw-r--r-- | libtransport/src/hicn/transport/utils/verifier.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libtransport/src/hicn/transport/utils/verifier.cc b/libtransport/src/hicn/transport/utils/verifier.cc index af19d8b5e..69b2101da 100644 --- a/libtransport/src/hicn/transport/utils/verifier.cc +++ b/libtransport/src/hicn/transport/utils/verifier.cc @@ -97,6 +97,8 @@ PARCKeyId *Verifier::addKeyFromCertificate(const std::string &file_name) { int Verifier::verify(const Packet &packet) { bool valid = false; + // initialize packet.payload_head_ + const_cast<Packet*>(&packet)->separateHeaderPayload(); // header chain points to the IP + TCP hicn header utils::MemBuf *header_chain = packet.header_head_; utils::MemBuf *payload_chain = packet.payload_head_; |