From 4efee1f4ef8528cd7f73032cf09a113e20e66a00 Mon Sep 17 00:00:00 2001 From: Aveen Ismail Date: Wed, 4 Sep 2024 14:29:11 +0200 Subject: [PATCH] Remove unnecessary < 0 check --- src/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.c b/src/commands.c index df3bf3f1..aad86b65 100644 --- a/src/commands.c +++ b/src/commands.c @@ -3099,7 +3099,7 @@ int yh_com_sign_ssh_certificate(yubihsm_context *ctx, Argument *argv, yh_rc yrc = yh_util_sign_ssh_certificate(argv[0].e, argv[1].w, argv[2].w, argv[3].a, data, argv[4].len, data + argv[4].len, &response_len); - if (yrc != YHR_SUCCESS || response_len <= 0) { + if (yrc != YHR_SUCCESS || response_len == 0) { fprintf(stderr, "Failed to get certificate signature: %s\n", yh_strerror(yrc)); return -1;