blob: 2f5f47fbde8780f0672b4956cd96959f84c6983a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ac,v 1.5 2008/04/25 19:58:17 joerg Exp $
From SVN: Fix potential DOS by clearing SSL error queue.
--- src/network_openssl.c.orig 2008-04-25 18:29:42.000000000 +0200
+++ src/network_openssl.c
@@ -85,6 +85,7 @@ int network_write_chunkqueue_openssl(ser
*
*/
+ ERR_clear_error();
if ((r = SSL_write(ssl, offset, toSend)) <= 0) {
unsigned long err;
@@ -187,6 +188,7 @@ int network_write_chunkqueue_openssl(ser
close(ifd);
+ ERR_clear_error();
if ((r = SSL_write(ssl, s, toSend)) <= 0) {
unsigned long err;
|