From 83a3320818ca9fda342bf3ebf3480888c6256cc4 Mon Sep 17 00:00:00 2001 From: jsing Date: Sun, 13 Jul 2014 23:34:39 +0000 Subject: [PATCH] Stop leaking internal library pointers in error messages. Requested by miod@ --- lib/libssl/src/ssl/ssl_asn1.c | 4 ++-- lib/libssl/ssl_asn1.c | 4 ++-- 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); -- 2.20.1