Skip to content
Permalink
Browse files
fix support for unknown key types; ok djm@
  • Loading branch information
mfriedl committed Jul 19, 2017
1 parent 39200eb commit 6a4f420
Showing 1 changed file with 1 addition and 6 deletions.
@@ -1,4 +1,4 @@
/* $OpenBSD: sshkey.c,v 1.54 2017/07/01 13:50:45 djm Exp $ */
/* $OpenBSD: sshkey.c,v 1.55 2017/07/19 08:30:41 markus Exp $ */
/*
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
* Copyright (c) 2008 Alexander von Gernler. All rights reserved.
@@ -1948,11 +1948,6 @@ sshkey_from_blob_internal(struct sshbuf *b, struct sshkey **keyp,
pk = NULL;
break;
case KEY_UNSPEC:
if ((key = sshkey_new(type)) == NULL) {
ret = SSH_ERR_ALLOC_FAIL;
goto out;
}
break;
default:
ret = SSH_ERR_KEY_TYPE_UNKNOWN;
goto out;

0 comments on commit 6a4f420

Please sign in to comment.