summaryrefslogtreecommitdiff
path: root/ssh-dss.c
diff options
context:
space:
mode:
authormmcc@openbsd.org <mmcc@openbsd.org>2015-12-10 17:08:40 +0000
committerDamien Miller <djm@mindrot.org>2015-12-11 13:23:14 +1100
commitd59ce08811bf94111c2f442184cf7d1257ffae24 (patch)
tree5885ad687f762834250c9c3f5b53b3f1b750c9f1 /ssh-dss.c
parent8e56dd46cb37879c73bce2d6032cf5e7f82d5a71 (diff)
downloadopenssh-git-d59ce08811bf94111c2f442184cf7d1257ffae24.tar.gz
upstream commit
Remove NULL-checks before free(). ok dtucker@ Upstream-ID: e3d3cb1ce900179906af36517b5eea0fb15e6ef8
Diffstat (limited to 'ssh-dss.c')
-rw-r--r--ssh-dss.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ssh-dss.c b/ssh-dss.c
index 8ed19d84..254f2a39 100644
--- a/ssh-dss.c
+++ b/ssh-dss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-dss.c,v 1.32 2014/06/24 01:13:21 djm Exp $ */
+/* $OpenBSD: ssh-dss.c,v 1.33 2015/12/10 17:08:40 mmcc Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -211,8 +211,7 @@ ssh_dss_verify(const struct sshkey *key,
DSA_SIG_free(sig);
if (b != NULL)
sshbuf_free(b);
- if (ktype != NULL)
- free(ktype);
+ free(ktype);
if (sigblob != NULL) {
explicit_bzero(sigblob, len);
free(sigblob);