Fixed output in ietf_attributes_t.get_string.
This commit is contained in:
1 parent
64f4237b1e
commit
1f02bdc8d3
1 file changed
+2
-2
@@ -189,11 +189,11 @@ static char* get_string(private_ietf_attributes_t *this)
|
|||||||
|
|
||||||
if (oid == OID_UNKNOWN)
|
if (oid == OID_UNKNOWN)
|
||||||
{
|
{
|
||||||
written = snprintf(pos, len, "0x#B", &attr->value);
|
written = snprintf(pos, len, "0x%#B", &attr->value);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
written = snprintf(pos, len, "%s", oid_names[oid]);
|
written = snprintf(pos, len, "%s", oid_names[oid].name);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user