summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2015-01-12 19:22:46 +0000
committermarkus <markus@openbsd.org>2015-01-12 19:22:46 +0000
commitaaaad151948bc46ff3079e3c19d9cb2d8b3d222e (patch)
treed71ec7de77c63cc0c4a2e9585d5590e882e8e328
parentoops, don't load quirks prematurely. noticed by many, myself included (diff)
downloadwireguard-openbsd-aaaad151948bc46ff3079e3c19d9cb2d8b3d222e.tar.xz
wireguard-openbsd-aaaad151948bc46ff3079e3c19d9cb2d8b3d222e.zip
missing error assigment on sshbuf_put_string()
-rw-r--r--usr.bin/ssh/krl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/krl.c b/usr.bin/ssh/krl.c
index d3cbfd51f8c..53b30dba491 100644
--- a/usr.bin/ssh/krl.c
+++ b/usr.bin/ssh/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 <sys/types.h>
#include <sys/param.h>
@@ -714,7 +714,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) {
@@ -725,7 +725,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) {