diff options
Diffstat (limited to 'sshkey-xmss.c')
-rw-r--r-- | sshkey-xmss.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sshkey-xmss.c b/sshkey-xmss.c index aaae70289..ef39831c6 100644 --- a/sshkey-xmss.c +++ b/sshkey-xmss.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshkey-xmss.c,v 1.3 2018/07/09 21:59:10 markus Exp $ */ | 1 | /* $OpenBSD: sshkey-xmss.c,v 1.4 2019/06/27 18:03:37 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2017 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -467,9 +467,9 @@ sshkey_xmss_get_state(const struct sshkey *k, sshkey_printfn *pr) | |||
467 | } | 467 | } |
468 | if ((filename = k->xmss_filename) == NULL) | 468 | if ((filename = k->xmss_filename) == NULL) |
469 | goto done; | 469 | goto done; |
470 | if (asprintf(&lockfile, "%s.lock", filename) < 0 || | 470 | if (asprintf(&lockfile, "%s.lock", filename) == -1 || |
471 | asprintf(&statefile, "%s.state", filename) < 0 || | 471 | asprintf(&statefile, "%s.state", filename) == -1 || |
472 | asprintf(&ostatefile, "%s.ostate", filename) < 0) { | 472 | asprintf(&ostatefile, "%s.ostate", filename) == -1) { |
473 | ret = SSH_ERR_ALLOC_FAIL; | 473 | ret = SSH_ERR_ALLOC_FAIL; |
474 | goto done; | 474 | goto done; |
475 | } | 475 | } |
@@ -594,9 +594,9 @@ sshkey_xmss_update_state(const struct sshkey *k, sshkey_printfn *pr) | |||
594 | state->idx = idx; | 594 | state->idx = idx; |
595 | if ((filename = k->xmss_filename) == NULL) | 595 | if ((filename = k->xmss_filename) == NULL) |
596 | goto done; | 596 | goto done; |
597 | if (asprintf(&statefile, "%s.state", filename) < 0 || | 597 | if (asprintf(&statefile, "%s.state", filename) == -1 || |
598 | asprintf(&ostatefile, "%s.ostate", filename) < 0 || | 598 | asprintf(&ostatefile, "%s.ostate", filename) == -1 || |
599 | asprintf(&nstatefile, "%s.nstate", filename) < 0) { | 599 | asprintf(&nstatefile, "%s.nstate", filename) == -1) { |
600 | ret = SSH_ERR_ALLOC_FAIL; | 600 | ret = SSH_ERR_ALLOC_FAIL; |
601 | goto done; | 601 | goto done; |
602 | } | 602 | } |