Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssl/dist/ssl Avoid NULL dereference....
details: https://anonhg.NetBSD.org/src/rev/f36d676ba224
branches: trunk
changeset: 329213:f36d676ba224
user: christos <christos%NetBSD.org@localhost>
date: Thu May 15 12:53:52 2014 +0000
description:
Avoid NULL dereference. (FreeBSD SA14:10)
diffstat:
crypto/external/bsd/openssl/dist/ssl/s3_pkt.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r ee2fd042f8a9 -r f36d676ba224 crypto/external/bsd/openssl/dist/ssl/s3_pkt.c
--- a/crypto/external/bsd/openssl/dist/ssl/s3_pkt.c Thu May 15 09:55:11 2014 +0000
+++ b/crypto/external/bsd/openssl/dist/ssl/s3_pkt.c Thu May 15 12:53:52 2014 +0000
@@ -658,6 +658,10 @@
if (i <= 0)
return(i);
/* if it went, fall through and send more stuff */
+ /* we may have released our buffer, so get it again */
+ if (wb->buf == NULL)
+ if (!ssl3_setup_write_buffer(s))
+ return -1;
}
if (len == 0 && !create_empty_fragment)
Home |
Main Index |
Thread Index |
Old Index