pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Cleanup more code related to ws2_32.dll loading in src/port/geta
Date: Thu, 20 Feb 2020 03:02:13 +0000
Message-ID: <E1j4c6P-0006qJ-0c@gemulon.postgresql.org> (raw)

Cleanup more code related to ws2_32.dll loading in src/port/getaddrinfo.c

e2e0219 has removed a code path for Windows 2000 that attempts to load
wship6.dll as fallback if ws2_32.dll is found but not getaddrinfo(),
leaving behind a dangling pointer as the library is freed.  However,
there is no point in this check as ws2_32.dll exists since Windows XP,
so just remove the duplicated check.

Reported-by: Tom Lane
Discussion: https://postgr.es/m/9781.1582146114@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d55e9ae2633ee462d554dddc08d640d725dd6494

Modified Files
--------------
src/port/getaddrinfo.c | 10 ----------
1 file changed, 10 deletions(-)



Message-ID: <E1j4c6P-0006qJ-0c@gemulon.postgresql.org>
Permalink:  ../E1j4c6P-0006qJ-0c@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1j4c6P-0006qJ-0c@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Cleanup more code related to ws2_32.dll loading in src/port/geta
  In-Reply-To: <E1j4c6P-0006qJ-0c@gemulon.postgresql.org>
  References: <E1j4c6P-0006qJ-0c@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox