From 4e045c6a942d3a2e717ab0c46c40913383d06550 Mon Sep 17 00:00:00 2001 From: markus Date: Thu, 15 Jan 2015 21:38:50 +0000 Subject: [PATCH] remove xmalloc, switch to sshbuf --- usr.bin/ssh/ssh-ed25519.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/usr.bin/ssh/ssh-ed25519.c b/usr.bin/ssh/ssh-ed25519.c index 205c9a39ccd..fdb448c03a3 100644 --- a/usr.bin/ssh/ssh-ed25519.c +++ b/usr.bin/ssh/ssh-ed25519.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-ed25519.c,v 1.5 2014/10/14 03:09:59 daniel Exp $ */ +/* $OpenBSD: ssh-ed25519.c,v 1.6 2015/01/15 21:38:50 markus Exp $ */ /* * Copyright (c) 2013 Markus Friedl * @@ -23,9 +23,8 @@ #include #include -#include "xmalloc.h" #include "log.h" -#include "buffer.h" +#include "sshbuf.h" #include "sshkey.h" #include "ssherr.h" #include "ssh.h" @@ -131,7 +130,7 @@ ssh_ed25519_verify(const struct sshkey *key, } smlen = len + datalen; mlen = smlen; - if ((sm = malloc(smlen)) == NULL || (m = xmalloc(mlen)) == NULL) { + if ((sm = malloc(smlen)) == NULL || (m = malloc(mlen)) == NULL) { r = SSH_ERR_ALLOC_FAIL; goto out; } @@ -162,4 +161,3 @@ ssh_ed25519_verify(const struct sshkey *key, free(ktype); return r; } - -- 2.20.1