summaryrefslogtreecommitdiffstats
path: root/include/keys/asymmetric-subtype.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/keys/asymmetric-subtype.h')
-rw-r--r--include/keys/asymmetric-subtype.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/keys/asymmetric-subtype.h b/include/keys/asymmetric-subtype.h
index 4b840e822209..4915d40d3c3c 100644
--- a/include/keys/asymmetric-subtype.h
+++ b/include/keys/asymmetric-subtype.h
@@ -49,7 +49,7 @@ struct asymmetric_key_subtype {
static inline
struct asymmetric_key_subtype *asymmetric_key_subtype(const struct key *key)
{
- return key->type_data.p[0];
+ return key->payload.data[asym_subtype];
}
#endif /* _KEYS_ASYMMETRIC_SUBTYPE_H */