summaryrefslogtreecommitdiffstats
path: root/krl.c
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2015-01-12 20:22:46 +0100
committerDamien Miller <djm@mindrot.org>2015-01-13 09:26:12 +0100
commit0097565f849851812df610b7b6b3c4bd414f6c62 (patch)
tree641e905c777a936ac050401f09c3d5c7fb7efa33 /krl.c
parentupstream commit (diff)
downloadopenssh-0097565f849851812df610b7b6b3c4bd414f6c62.tar.xz
openssh-0097565f849851812df610b7b6b3c4bd414f6c62.zip
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 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $OpenBSD: krl.c,v 1.23 2015/01/12 14:05:19 markus Exp $ */
+/* $OpenBSD: krl.c,v 1.24 2015/01/12 19:22:46 markus Exp $ */
#include "includes.h"
@@ -716,7 +716,7 @@ ssh_krl_to_blob(struct ssh_krl *krl, struct sshbuf *buf,
sshbuf_reset(sect);
RB_FOREACH(rb, revoked_blob_tree, &krl->revoked_keys) {
debug3("%s: key len %zu ", __func__, rb->len);
- if ((sshbuf_put_string(sect, rb->blob, rb->len)) != 0)
+ if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0)
goto out;
}
if (sshbuf_len(sect) != 0) {
@@ -727,7 +727,7 @@ ssh_krl_to_blob(struct ssh_krl *krl, struct sshbuf *buf,
sshbuf_reset(sect);
RB_FOREACH(rb, revoked_blob_tree, &krl->revoked_sha1s) {
debug3("%s: hash len %zu ", __func__, rb->len);
- if ((sshbuf_put_string(sect, rb->blob, rb->len)) != 0)
+ if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0)
goto out;
}
if (sshbuf_len(sect) != 0) {