Bug #3803
Updated by Davide Pesavento over 2 years ago
Snippet to reproduce: ```c++ // g++ -std=c++14 -o x x.cpp $(pkg-config --cflags --libs libndn-cxx) #include <ndn-cxx/link.hpp> #include <ndn-cxx/security/key-chain.hpp> #include <iostream> int main() { ndn::Link link; auto link = std::make_shared<ndn::Link>("/link-name"); link.setName("/link-name"); ndn::KeyChain keyChain; keyChain.sign(link); keyChain.sign(*link); std::cout << link; *link; } ``` Expected: ContentType==LINK, or an exception is thrown Actual: ContentType==BLOB