Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YSAXl-00085a-25 for pgsql-bugs@arkaria.postgresql.org; Sun, 01 Mar 2015 20:32:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YSAXk-0002FP-Hx for pgsql-bugs@arkaria.postgresql.org; Sun, 01 Mar 2015 20:32:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YSAXj-0002FI-Fv for pgsql-bugs@postgresql.org; Sun, 01 Mar 2015 20:32:51 +0000 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YSAXf-0005JW-KT for pgsql-bugs@postgresql.org; Sun, 01 Mar 2015 20:32:50 +0000 Received: by wghb13 with SMTP id b13so29790030wgh.0 for ; Sun, 01 Mar 2015 12:32:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=KryAZo3TWOmMGisQ+dpugG+S3LThtOU0iYdC6hfq92A=; b=PfBwzo+zXtxpkPLSO/M+l6bWpAhsHU3hYgQEgDkl91Q89dGn4R3jaPdPOiJhwrpWLJ LSK3Hb+Pnk7E89RCjYOyi7b0cSd1rVd1SWtoh87RlIHVQ8L7bOOlxO2ZTcEAY3nFlV0g MnXi+ZgsuBAZG5Sh9tlHgMRTSlVvKa9qCQw1HUrTSt8oQQ3PvVb2nF5q9NYpyvxUc4T0 Ln3dsjGh7h0GlNsswfvH22x3fpVXaWjv7CDVgvNtwQVQWsYDvEDFE9XeU/20I+sxY0v1 3iTMtFPEnX/oM11cRZEMj6KgxzyBFZ9CzHrr0sF/hDECv7lerY+yql5+61/XS4R6QlV1 spOQ== X-Received: by 10.180.85.70 with SMTP id f6mr28813582wiz.22.1425241964737; Sun, 01 Mar 2015 12:32:44 -0800 (PST) Received: from [192.168.1.107] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by mx.google.com with ESMTPSA id j7sm13038248wix.4.2015.03.01.12.32.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Mar 2015 12:32:43 -0800 (PST) Message-ID: <54F37769.3090406@iki.fi> Date: Sun, 01 Mar 2015 22:32:41 +0200 From: Heikki Linnakangas Reply-To: hlinnaka@iki.fi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 MIME-Version: 1.0 To: william.welter@4linux.com.br CC: pgsql-bugs@postgresql.org Subject: Re: BUG #12799: libpq - SSL pqsecure_read() doesn't clean openssl error queue before reading References: <20150224030956.2529.83279@wrigleys.postgresql.org> <54EDD30D.5050107@vmware.com> <319431910.43023.1425002429817.JavaMail.zimbra@4linux.com.br> In-Reply-To: <319431910.43023.1425002429817.JavaMail.zimbra@4linux.com.br> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 02/27/2015 04:00 AM, william.welter@4linux.com.br wrote: >>> The solution is simple, see following patches: >> >> Yeah. Should also do the same in the backend, and also before >> SSL_connect/SSL_accept() calls. I.e. any time SSL_get_error is used. > > Question: Is possible to fix this to next major release ? (im volunteering) Yeah. If you could write a complete patch, per above, I can commit it. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs