libp2p / cpp-libp2p

C++17 implementation of libp2p
Apache License 2.0
346 stars 97 forks source link

fix: prevent segmentation fault when receiving empty message (#199) #200

Closed asmie closed 1 year ago

asmie commented 1 year ago

Fix to prevent segmentation fault when receiving empty protobuf message by checking if returned shared pointer contains null and if so, just calling the callback.