aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libstrongswan/utils/identification.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstrongswan/utils/identification.c b/src/libstrongswan/utils/identification.c
index 6816a7d8c..f006b40a7 100644
--- a/src/libstrongswan/utils/identification.c
+++ b/src/libstrongswan/utils/identification.c
@@ -147,9 +147,10 @@ static bool rdn_enumerate(rdn_enumerator_t *this, chunk_t *oid,
if (asn1_unwrap(&rdn, oid) == ASN1_OID)
{
/* and a specific string type */
- *type = asn1_unwrap(&rdn, data);
- if (*type != ASN1_INVALID)
+ int t = asn1_unwrap(&rdn, data);
+ if (t != ASN1_INVALID)
{
+ *type = t;
return TRUE;
}
}