summaryrefslogtreecommitdiff
path: root/krl.c
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2015-01-12 19:22:46 +0000
committerDamien Miller <djm@mindrot.org>2015-01-13 19:26:12 +1100
commit0097565f849851812df610b7b6b3c4bd414f6c62 (patch)
tree641e905c777a936ac050401f09c3d5c7fb7efa33 /krl.c
parenta7f49dcb527dd17877fcb8d5c3a9a6f550e0bba5 (diff)
upstream commit
missing error assigment on sshbuf_put_string()
Diffstat (limited to 'krl.c')
-rw-r--r--krl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/krl.c b/krl.c
index 5fa74636f..47d6d2c3d 100644
--- a/krl.c
+++ b/krl.c
@@ -14,7 +14,7 @@
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */ 15 */
16 16
17/* $OpenBSD: krl.c,v 1.23 2015/01/12 14:05:19 markus Exp $ */ 17/* $OpenBSD: krl.c,v 1.24 2015/01/12 19:22:46 markus Exp $ */
18 18
19#include "includes.h" 19#include "includes.h"
20 20
@@ -716,7 +716,7 @@ ssh_krl_to_blob(struct ssh_krl *krl, struct sshbuf *buf,
716 sshbuf_reset(sect); 716 sshbuf_reset(sect);
717 RB_FOREACH(rb, revoked_blob_tree, &krl->revoked_keys) { 717 RB_FOREACH(rb, revoked_blob_tree, &krl->revoked_keys) {
718 debug3("%s: key len %zu ", __func__, rb->len); 718 debug3("%s: key len %zu ", __func__, rb->len);
719 if ((sshbuf_put_string(sect, rb->blob, rb->len)) != 0) 719 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0)
720 goto out; 720 goto out;
721 } 721 }
722 if (sshbuf_len(sect) != 0) { 722 if (sshbuf_len(sect) != 0) {
@@ -727,7 +727,7 @@ ssh_krl_to_blob(struct ssh_krl *krl, struct sshbuf *buf,
727 sshbuf_reset(sect); 727 sshbuf_reset(sect);
728 RB_FOREACH(rb, revoked_blob_tree, &krl->revoked_sha1s) { 728 RB_FOREACH(rb, revoked_blob_tree, &krl->revoked_sha1s) {
729 debug3("%s: hash len %zu ", __func__, rb->len); 729 debug3("%s: hash len %zu ", __func__, rb->len);
730 if ((sshbuf_put_string(sect, rb->blob, rb->len)) != 0) 730 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0)
731 goto out; 731 goto out;
732 } 732 }
733 if (sshbuf_len(sect) != 0) { 733 if (sshbuf_len(sect) != 0) {