pgsql: Cleanup more code related to ws2_32.dll loading in src/port/geta

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Cleanup more code related to ws2_32.dll loading in src/port/geta
Date: 2020-02-20 03:02:13
Message-ID: E1j4c6P-0006qJ-0c@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2020-02-20 03:02:40 Re: pgsql: Clean up some code, comments and docs referring to Windows 2000
Previous Message Tom Lane 2020-02-19 23:52:37 pgsql: Doc: discourage use of partial indexes for poor-man's-partitioni