summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-rsa.c
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-12-10 17:08:40 +0000
committermmcc <mmcc@openbsd.org>2015-12-10 17:08:40 +0000
commit1b895242ce0e7b0bb67e09a5f50eb9e279005ed7 (patch)
tree671497ed555e2ccf32a2feb5783adf0518e53434 /usr.bin/ssh/ssh-rsa.c
parentMap SOCKS error codes to error strings. With input from deraadt@ (diff)
downloadwireguard-openbsd-1b895242ce0e7b0bb67e09a5f50eb9e279005ed7.tar.xz
wireguard-openbsd-1b895242ce0e7b0bb67e09a5f50eb9e279005ed7.zip
Remove NULL-checks before free().
ok dtucker@
Diffstat (limited to 'usr.bin/ssh/ssh-rsa.c')
-rw-r--r--usr.bin/ssh/ssh-rsa.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-rsa.c b/usr.bin/ssh/ssh-rsa.c
index e7ed90626fe..e8ca0eda063 100644
--- a/usr.bin/ssh/ssh-rsa.c
+++ b/usr.bin/ssh/ssh-rsa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-rsa.c,v 1.56 2015/12/07 20:04:09 markus Exp $ */
+/* $OpenBSD: ssh-rsa.c,v 1.57 2015/12/10 17:08:40 mmcc Exp $ */
/*
* Copyright (c) 2000, 2003 Markus Friedl <markus@openbsd.org>
*
@@ -221,8 +221,7 @@ ssh_rsa_verify(const struct sshkey *key,
explicit_bzero(sigblob, len);
free(sigblob);
}
- if (ktype != NULL)
- free(ktype);
+ free(ktype);
if (b != NULL)
sshbuf_free(b);
explicit_bzero(digest, sizeof(digest));