diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-04-14 10:24:46 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-04-14 18:10:26 +0200 |
commit | 1f02bdc8d30a15d09d6cc37d934aa782d5908497 (patch) | |
tree | 3503f958b28515fc8aad81995cf8ad2be0d2e9cd /src | |
parent | 64f4237b1e62aded6a32f4bb5a7ea89a576561fd (diff) | |
download | strongswan-1f02bdc8d30a15d09d6cc37d934aa782d5908497.tar.bz2 strongswan-1f02bdc8d30a15d09d6cc37d934aa782d5908497.tar.xz |
Fixed output in ietf_attributes_t.get_string.
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/credentials/ietf_attributes/ietf_attributes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/credentials/ietf_attributes/ietf_attributes.c b/src/libstrongswan/credentials/ietf_attributes/ietf_attributes.c index de5b85bae..372e0af6e 100644 --- a/src/libstrongswan/credentials/ietf_attributes/ietf_attributes.c +++ b/src/libstrongswan/credentials/ietf_attributes/ietf_attributes.c @@ -189,11 +189,11 @@ static char* get_string(private_ietf_attributes_t *this) if (oid == OID_UNKNOWN) { - written = snprintf(pos, len, "0x#B", &attr->value); + written = snprintf(pos, len, "0x%#B", &attr->value); } else { - written = snprintf(pos, len, "%s", oid_names[oid]); + written = snprintf(pos, len, "%s", oid_names[oid].name); } break; } |