summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-07-13 23:34:39 +0000
committerjsing <jsing@openbsd.org>2014-07-13 23:34:39 +0000
commit83a3320818ca9fda342bf3ebf3480888c6256cc4 (patch)
treeb3d00801feb14bae9a47a2a1f41b66e02dd02845
parentpass correct sizes to free() (diff)
downloadwireguard-openbsd-83a3320818ca9fda342bf3ebf3480888c6256cc4.tar.xz
wireguard-openbsd-83a3320818ca9fda342bf3ebf3480888c6256cc4.zip
Stop leaking internal library pointers in error messages.
Requested by miod@
-rw-r--r--lib/libssl/src/ssl/ssl_asn1.c4
-rw-r--r--lib/libssl/ssl_asn1.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libssl/src/ssl/ssl_asn1.c b/lib/libssl/src/ssl/ssl_asn1.c
index 3d4fe8cb6f4..627acbf5b07 100644
--- a/lib/libssl/src/ssl/ssl_asn1.c
+++ b/lib/libssl/src/ssl/ssl_asn1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_asn1.c,v 1.36 2014/07/13 21:38:23 jsing Exp $ */
+/* $OpenBSD: ssl_asn1.c,v 1.37 2014/07/13 23:34:39 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -683,7 +683,7 @@ d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, long length)
return (ret);
err:
- ERR_asprintf_error_data("address=%p offset=%d", *pp, (int)(c.q - *pp));
+ ERR_asprintf_error_data("offset=%d", (int)(c.q - *pp));
if (ret != NULL && (a == NULL || *a != ret))
SSL_SESSION_free(ret);
diff --git a/lib/libssl/ssl_asn1.c b/lib/libssl/ssl_asn1.c
index 3d4fe8cb6f4..627acbf5b07 100644
--- a/lib/libssl/ssl_asn1.c
+++ b/lib/libssl/ssl_asn1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_asn1.c,v 1.36 2014/07/13 21:38:23 jsing Exp $ */
+/* $OpenBSD: ssl_asn1.c,v 1.37 2014/07/13 23:34:39 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -683,7 +683,7 @@ d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, long length)
return (ret);
err:
- ERR_asprintf_error_data("address=%p offset=%d", *pp, (int)(c.q - *pp));
+ ERR_asprintf_error_data("offset=%d", (int)(c.q - *pp));
if (ret != NULL && (a == NULL || *a != ret))
SSL_SESSION_free(ret);