summaryrefslogtreecommitdiffstats
path: root/ncr-key.c
diff options
context:
space:
mode:
Diffstat (limited to 'ncr-key.c')
-rw-r--r--ncr-key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ncr-key.c b/ncr-key.c
index 56708d8fba7..6e682451375 100644
--- a/ncr-key.c
+++ b/ncr-key.c
@@ -624,8 +624,8 @@ int ret;
ret = ncr_out_put_u32(out, *attr, item->type);
break;
case NCR_ATTR_ALGORITHM:
- ret = ncr_out_put_u32(out, *attr,
- item->algorithm->algo);
+ ret = ncr_out_put_string(out, *attr,
+ item->algorithm->kstr);
break;
default:
break; /* Silently ignore */