summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2015-01-15 21:38:50 +0000
committermarkus <markus@openbsd.org>2015-01-15 21:38:50 +0000
commit4e045c6a942d3a2e717ab0c46c40913383d06550 (patch)
tree49e0404d327c8558e41e98de1331e0aed0d39198
parentswitch to sshbuf (diff)
downloadwireguard-openbsd-4e045c6a942d3a2e717ab0c46c40913383d06550.tar.xz
wireguard-openbsd-4e045c6a942d3a2e717ab0c46c40913383d06550.zip
remove xmalloc, switch to sshbuf
-rw-r--r--usr.bin/ssh/ssh-ed25519.c8
1 files 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 <markus@openbsd.org>
*
@@ -23,9 +23,8 @@
#include <string.h>
#include <stdarg.h>
-#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;
}
-