summaryrefslogtreecommitdiffstats
path: root/ssh-ecdsa.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2013-09-18 17:27:38 +0000
committerdes <des@FreeBSD.org>2013-09-18 17:27:38 +0000
commitff2597d3eebc3da3f7cf2a638607274cad9b199e (patch)
treea3ace41867a87a4a940a57f82cd20c283e6aa7cb /ssh-ecdsa.c
parentf054e5cb18d6e2020eb4fe568cc383ac22fa23c4 (diff)
downloadFreeBSD-src-ff2597d3eebc3da3f7cf2a638607274cad9b199e.zip
FreeBSD-src-ff2597d3eebc3da3f7cf2a638607274cad9b199e.tar.gz
Vendor import of OpenSSH 6.3p1
Diffstat (limited to 'ssh-ecdsa.c')
-rw-r--r--ssh-ecdsa.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ssh-ecdsa.c b/ssh-ecdsa.c
index 085468e..7663389 100644
--- a/ssh-ecdsa.c
+++ b/ssh-ecdsa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-ecdsa.c,v 1.5 2012/01/08 13:17:11 miod Exp $ */
+/* $OpenBSD: ssh-ecdsa.c,v 1.6 2013/05/17 00:13:14 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2010 Damien Miller. All rights reserved.
@@ -119,16 +119,16 @@ ssh_ecdsa_verify(const Key *key, const u_char *signature, u_int signaturelen,
if (strcmp(key_ssh_name_plain(key), ktype) != 0) {
error("%s: cannot handle type %s", __func__, ktype);
buffer_free(&b);
- xfree(ktype);
+ free(ktype);
return -1;
}
- xfree(ktype);
+ free(ktype);
sigblob = buffer_get_string(&b, &len);
rlen = buffer_len(&b);
buffer_free(&b);
if (rlen != 0) {
error("%s: remaining bytes in signature %d", __func__, rlen);
- xfree(sigblob);
+ free(sigblob);
return -1;
}
@@ -149,7 +149,7 @@ ssh_ecdsa_verify(const Key *key, const u_char *signature, u_int signaturelen,
/* clean up */
memset(sigblob, 0, len);
- xfree(sigblob);
+ free(sigblob);
/* hash the data */
EVP_DigestInit(&md, evp_md);
OpenPOWER on IntegriCloud