diff options
author | 2019-07-07 01:05:00 +0000 | |
---|---|---|
committer | 2019-07-07 01:05:00 +0000 | |
commit | 4db014ec59892d2fd9b02eba58bbd23b2b38d001 (patch) | |
tree | fe7be2c8a8fac9255f9e0377cd524333917e8d2d /usr.bin/ssh/sshbuf-misc.c | |
parent | Fix Makemaker manpage section detection (diff) | |
download | wireguard-openbsd-4db014ec59892d2fd9b02eba58bbd23b2b38d001.tar.xz wireguard-openbsd-4db014ec59892d2fd9b02eba58bbd23b2b38d001.zip |
Remove some set but never used variables. ok daraadt@
Diffstat (limited to 'usr.bin/ssh/sshbuf-misc.c')
-rw-r--r-- | usr.bin/ssh/sshbuf-misc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshbuf-misc.c b/usr.bin/ssh/sshbuf-misc.c index 5ac8edc4c2a..7251630de8a 100644 --- a/usr.bin/ssh/sshbuf-misc.c +++ b/usr.bin/ssh/sshbuf-misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshbuf-misc.c,v 1.6 2016/05/02 08:49:03 djm Exp $ */ +/* $OpenBSD: sshbuf-misc.c,v 1.7 2019/07/07 01:05:00 dtucker Exp $ */ /* * Copyright (c) 2011 Damien Miller * @@ -91,14 +91,13 @@ sshbuf_dtob64(struct sshbuf *buf) size_t len = sshbuf_len(buf), plen; const u_char *p = sshbuf_ptr(buf); char *ret; - int r; if (len == 0) return strdup(""); plen = ((len + 2) / 3) * 4 + 1; if (SIZE_MAX / 2 <= len || (ret = malloc(plen)) == NULL) return NULL; - if ((r = b64_ntop(p, len, ret, plen)) == -1) { + if (b64_ntop(p, len, ret, plen) == -1) { explicit_bzero(ret, plen); free(ret); return NULL; |