diff options
author | Damien Miller <djm@mindrot.org> | 2013-02-12 00:54:37 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-02-12 00:54:37 +0100 |
commit | ea078462ea9b6efec982dce999ffa47ca1055077 (patch) | |
tree | 48c81b9e4a63f351d76915a450eca972e1dad47f /krl.c | |
parent | - (djm) [configure.ac openbsd-compat/openssl-compat.h] Repair build on old (diff) | |
download | openssh-ea078462ea9b6efec982dce999ffa47ca1055077.tar.xz openssh-ea078462ea9b6efec982dce999ffa47ca1055077.zip |
- (djm) OpenBSD CVS Sync
- djm@cvs.openbsd.org 2013/01/24 21:45:37
[krl.c]
fix handling of (unused) KRL signatures; skip string in correct buffer
Diffstat (limited to 'krl.c')
-rw-r--r-- | krl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $OpenBSD: krl.c,v 1.4 2013/01/19 12:34:55 markus Exp $ */ +/* $OpenBSD: krl.c,v 1.5 2013/01/24 21:45:37 djm Exp $ */ #include "includes.h" @@ -1031,7 +1031,7 @@ ssh_krl_from_blob(Buffer *buf, struct ssh_krl **krlp, case KRL_SECTION_SIGNATURE: /* Handled above, but still need to stay in synch */ buffer_clear(§); - if ((blob = buffer_get_string_ptr_ret(§, + if ((blob = buffer_get_string_ptr_ret(©, &blen)) == NULL) { error("%s: buffer error", __func__); goto out; |