diff options
author | mmcc@openbsd.org <mmcc@openbsd.org> | 2015-12-11 05:21:11 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-12-18 04:50:48 +0100 |
commit | 52d7078421844b2f88329f5be3de370b0a938636 (patch) | |
tree | 1241462a841b14259755de181563cc83acd42109 /ssh-rsa.c | |
parent | upstream commit (diff) | |
download | openssh-52d7078421844b2f88329f5be3de370b0a938636.tar.xz openssh-52d7078421844b2f88329f5be3de370b0a938636.zip |
upstream commit
Remove NULL-checks before sshbuf_free().
ok djm@
Upstream-ID: 5ebed00ed5f9f03b119a345085e8774565466917
Diffstat (limited to 'ssh-rsa.c')
-rw-r--r-- | ssh-rsa.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-rsa.c,v 1.57 2015/12/10 17:08:40 mmcc Exp $ */ +/* $OpenBSD: ssh-rsa.c,v 1.58 2015/12/11 04:21:12 mmcc Exp $ */ /* * Copyright (c) 2000, 2003 Markus Friedl <markus@openbsd.org> * @@ -156,8 +156,7 @@ ssh_rsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, explicit_bzero(sig, slen); free(sig); } - if (b != NULL) - sshbuf_free(b); + sshbuf_free(b); return ret; } @@ -227,8 +226,7 @@ ssh_rsa_verify(const struct sshkey *key, free(sigblob); } free(ktype); - if (b != NULL) - sshbuf_free(b); + sshbuf_free(b); explicit_bzero(digest, sizeof(digest)); return ret; } |