summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2014-07-13 23:34:39 +0000
committerjsing <>2014-07-13 23:34:39 +0000
commit9ec3a299529d3fe14edba74d028a78b960dd4985 (patch)
treea32eea96776aa5f5dd87e493de6dbca251468f27 /src
parent9204149e8dcfa869eae73506d9f7a857927c5109 (diff)
downloadopenbsd-9ec3a299529d3fe14edba74d028a78b960dd4985.tar.gz
openbsd-9ec3a299529d3fe14edba74d028a78b960dd4985.tar.bz2
openbsd-9ec3a299529d3fe14edba74d028a78b960dd4985.zip
Stop leaking internal library pointers in error messages.
Requested by miod@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/src/ssl/ssl_asn1.c4
-rw-r--r--src/lib/libssl/ssl_asn1.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/src/ssl/ssl_asn1.c b/src/lib/libssl/src/ssl/ssl_asn1.c
index 3d4fe8cb6f..627acbf5b0 100644
--- a/src/lib/libssl/src/ssl/ssl_asn1.c
+++ b/src/lib/libssl/src/ssl/ssl_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_asn1.c,v 1.36 2014/07/13 21:38:23 jsing Exp $ */ 1/* $OpenBSD: ssl_asn1.c,v 1.37 2014/07/13 23:34:39 jsing 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 *
@@ -683,7 +683,7 @@ d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, long length)
683 return (ret); 683 return (ret);
684 684
685err: 685err:
686 ERR_asprintf_error_data("address=%p offset=%d", *pp, (int)(c.q - *pp)); 686 ERR_asprintf_error_data("offset=%d", (int)(c.q - *pp));
687 if (ret != NULL && (a == NULL || *a != ret)) 687 if (ret != NULL && (a == NULL || *a != ret))
688 SSL_SESSION_free(ret); 688 SSL_SESSION_free(ret);
689 689
diff --git a/src/lib/libssl/ssl_asn1.c b/src/lib/libssl/ssl_asn1.c
index 3d4fe8cb6f..627acbf5b0 100644
--- a/src/lib/libssl/ssl_asn1.c
+++ b/src/lib/libssl/ssl_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_asn1.c,v 1.36 2014/07/13 21:38:23 jsing Exp $ */ 1/* $OpenBSD: ssl_asn1.c,v 1.37 2014/07/13 23:34:39 jsing 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 *
@@ -683,7 +683,7 @@ d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, long length)
683 return (ret); 683 return (ret);
684 684
685err: 685err:
686 ERR_asprintf_error_data("address=%p offset=%d", *pp, (int)(c.q - *pp)); 686 ERR_asprintf_error_data("offset=%d", (int)(c.q - *pp));
687 if (ret != NULL && (a == NULL || *a != ret)) 687 if (ret != NULL && (a == NULL || *a != ret))
688 SSL_SESSION_free(ret); 688 SSL_SESSION_free(ret);
689 689