Skip to content

Commit

Permalink
Remove unnecessary < 0 check
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Sep 4, 2024
1 parent 4bf552c commit 4efee1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4efee1f

Please sign in to comment.