summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2013-01-24 21:45:38 +0000
committerDamien Miller <djm@cvs.openbsd.org>2013-01-24 21:45:38 +0000
commit149d5ebecb1b743e0d696e47ba24698410f266be (patch)
treefc28c64e65366d2acafdacc8166489d6c3dd6d98
parentbc28d963719359c506ac20a9485347f5daa0d2ea (diff)
fix handling of (unused) KRL signatures; skip string in correct buffer
-rw-r--r--usr.bin/ssh/krl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/krl.c b/usr.bin/ssh/krl.c
index 00c57f1426c..ad50ee36000 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.4 2013/01/19 12:34:55 markus Exp $ */
+/* $OpenBSD: krl.c,v 1.5 2013/01/24 21:45:37 djm Exp $ */
#include <sys/types.h>
#include <sys/param.h>
@@ -1029,7 +1029,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(&sect);
- if ((blob = buffer_get_string_ptr_ret(&sect,
+ if ((blob = buffer_get_string_ptr_ret(&copy,
&blen)) == NULL) {
error("%s: buffer error", __func__);
goto out;