diff options
Diffstat (limited to 'libtransport/src/core/prefix.cc')
-rw-r--r-- | libtransport/src/core/prefix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtransport/src/core/prefix.cc b/libtransport/src/core/prefix.cc index d54dc909a..8c5b153bc 100644 --- a/libtransport/src/core/prefix.cc +++ b/libtransport/src/core/prefix.cc @@ -263,7 +263,7 @@ Name Prefix::mapName(const core::Name &content_name) const { } Prefix &Prefix::setNetwork(const std::string &network) { - if (!hicn_ip_address_pton(network.c_str(), &hicn_ip_prefix_.address)) { + if (hicn_ip_address_pton(network.c_str(), &hicn_ip_prefix_.address) < 0) { throw errors::RuntimeException("The network name is not valid."); } |