summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authordoug <>2015-07-19 20:32:18 +0000
committerdoug <>2015-07-19 20:32:18 +0000
commite1b84c43076222a250e436e71045972c584515ce (patch)
treecbd31a1076f71b0161d2ea3b691a126f3d856a33 /src/lib/libssl/ssl_lib.c
parent243442e0f6d87748dcaccc2d2d3bf5605be3e3a9 (diff)
downloadopenbsd-e1b84c43076222a250e436e71045972c584515ce.tar.gz
openbsd-e1b84c43076222a250e436e71045972c584515ce.tar.bz2
openbsd-e1b84c43076222a250e436e71045972c584515ce.zip
Allow *_free() functions in libssl to handle NULL input.
This mimics free()'s behavior which makes error handling simpler. ok bcook@ miod@
Diffstat (limited to '')
-rw-r--r--src/lib/libssl/ssl_lib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 1dd518d0b8..629ad03554 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.104 2015/06/28 00:08:27 doug Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.105 2015/07/19 20:32:18 doug Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -2825,6 +2825,9 @@ ssl_init_wbio_buffer(SSL *s, int push)
2825void 2825void
2826ssl_free_wbio_buffer(SSL *s) 2826ssl_free_wbio_buffer(SSL *s)
2827{ 2827{
2828 if (s == NULL)
2829 return;
2830
2828 if (s->bbio == NULL) 2831 if (s->bbio == NULL)
2829 return; 2832 return;
2830 2833