Make sure ssl3_setup_buffers() does not return upon error with a freed
authormiod <miod@openbsd.org>
Sun, 18 May 2014 16:08:37 +0000 (16:08 +0000)
committermiod <miod@openbsd.org>
Sun, 18 May 2014 16:08:37 +0000 (16:08 +0000)
commit2e3539fccc844d1324da2dc2eb513bfe0a7244a6
treee2c320bceaa9ef598945d7bf97695206c26b00c9
parent85c77397519522a5af92f59e210aaf853ef86b8f
Make sure ssl3_setup_buffers() does not return upon error with a freed
pqueue still chained, by inserting it into the list only after all possible
failure conditions have been avoided.

Reported and fix proposed by David Ramos; ok beck@
lib/libssl/d1_pkt.c
lib/libssl/src/ssl/d1_pkt.c