libp2p / cpp-libp2p

C++17 implementation of libp2p
Apache License 2.0
364 stars 99 forks source link

null iterator dereferencing fix #182

Closed GaroRobe closed 2 years ago

GaroRobe commented 2 years ago

Fix for https://github.com/soramitsu/kagome/issues/1204.

The gist is we attempted to unconditionally dereference invalid (namely, end) iterator before reporting connection error. Now we skip this step if stream was not found.