Skip to contentSkip to conversation

keyctl: fix error path message names

PATCH Applied Ben Boeckel 1 participant 1 message Sep 27, 2018 Keys/keyrings

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/7 keyctl: fix error path message names

---
 keyctl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
keyctl.c +3 -3
index ab43c0a..50ece20 100644
@@ -966,7 +966,7 @@ static void act_keyctl_describe(int argc, char *argv[])
 	/* get key description */
 	ret = keyctl_describe_alloc(key, &buffer);
 	if (ret < 0)
-		error("keyctl_describe");
+		error("keyctl_describe_alloc");
 
 	/* parse it */
 	uid = 0;
@@ -1727,7 +1727,7 @@ static void act_keyctl_dh_compute_kdf(int argc, char *argv[])
 	ret = keyctl_dh_compute_kdf(private, prime, base, argv[5], NULL,  0,
 				    buffer, buflen);
 	if (ret < 0)
-		error("keyctl_dh_compute_alloc");
+		error("keyctl_dh_compute_kdf");
 
 	/* hexdump the contents */
 	printf("%u bytes of data in result:\n", ret);
@@ -1791,7 +1791,7 @@ static void act_keyctl_dh_compute_kdf_oi(int argc, char *argv[])
 	ret = keyctl_dh_compute_kdf(private, prime, base, argv[5], oi,  oilen,
 				    buffer, buflen);
 	if (ret < 0)
-		error("keyctl_dh_compute_alloc");
+		error("keyctl_dh_compute_kdf");
 
 	/* hexdump the contents */
 	printf("%u bytes of data in result:\n", ret);
Signature · 1 line
2.19.0.221.g150f307afc