Fix `binary` data passing via sysrepo and NETCONF
Change-Id: I1e30621fa9d1189efd964593e76f381c2cb3378d
diff --git a/src/libyang_utils.cpp b/src/libyang_utils.cpp
index 3b924ad..ddb3630 100644
--- a/src/libyang_utils.cpp
+++ b/src/libyang_utils.cpp
@@ -30,7 +30,7 @@
case LY_TYPE_IDENT:
return identityRef_{value->ident()->module()->name(), value->ident()->name()};
case LY_TYPE_BINARY:
- return std::string{value->binary()};
+ return binary_{value->binary()};
case LY_TYPE_DEC64:
{
auto v = value->dec64();