summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-23 20:43:43 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-23 20:43:43 +0000
commit999048251e80adc0005ffc648f3762cadefa9244 (patch)
treedd9abcfa38d0a8e02e46909ffa6f3676c6af591a /usr.bin
parent1b2ebce8546fd3540c5518105fb5109a31e5b60f (diff)
remove NULL-check before free()
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/openssl/s_server.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/openssl/s_server.c b/usr.bin/openssl/s_server.c
index 4a5c709fc75..a3200c8e9f1 100644
--- a/usr.bin/openssl/s_server.c
+++ b/usr.bin/openssl/s_server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_server.c,v 1.23 2015/12/01 12:04:51 jca Exp $ */
+/* $OpenBSD: s_server.c,v 1.24 2015/12/23 20:43:42 mmcc Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -2003,8 +2003,7 @@ err:
if (ret >= 0)
BIO_printf(bio_s_out, "ACCEPT\n");
- if (buf != NULL)
- free(buf);
+ free(buf);
if (io != NULL)
BIO_free_all(io);
/* if (ssl_bio != NULL) BIO_free(ssl_bio);*/