From: markus Date: Thu, 15 Jan 2015 21:38:50 +0000 (+0000) Subject: remove xmalloc, switch to sshbuf X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4e045c6a942d3a2e717ab0c46c40913383d06550;p=openbsd remove xmalloc, switch to sshbuf --- 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; } -