From adbdfdf7489e1909f29e2dd02edb7d15c258ed19 Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Fri, 16 Sep 2022 13:56:34 +0200 Subject: fix(hicn-light): fix routing issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref: HICN-786 Change-Id: I541c87d2d810907489ca4f59b3d7740a18c108fb Signed-off-by: Jordan Augé --- libtransport/src/core/prefix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtransport/src/core') 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."); } -- cgit 1.2.3-korg