Skip to content

Commit

Permalink
Fix OpenSSL NULL pointer deference vulnerability.
Browse files Browse the repository at this point in the history
Obtained from:	OpenBSD
Security:	FreeBSD-SA-14:09.openssl
Security:	CVE-2014-0198
  • Loading branch information
delphij committed May 13, 2014
1 parent 4ec7183 commit 43c7f4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crypto/openssl/ssl/s3_pkt.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,10 @@ static int do_ssl3_write(SSL *s, int type, const unsigned char *buf,
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)
Expand Down

0 comments on commit 43c7f4a

Please sign in to comment.