[20571] in Kerberos_V5_Development
Re: unbalanced WSAStartup/WSACleanup calls
daemon@ATHENA.MIT.EDU (Greg Hudson)
Tue May 5 20:45:42 2026
Message-ID: <82772a20-8cf6-453f-96b6-ef1d399d15ce@mit.edu>
Date: Tue, 5 May 2026 20:45:29 -0400
MIME-Version: 1.0
To: Zvika Meiseles <zvika.meiseles@gmail.com>, krbdev@mit.edu
Content-Language: en-US
From: "Greg Hudson" <ghudson@mit.edu>
In-Reply-To: <CAGNA6=HUKvYaQqseJocg1UjFkB0+WvAzL3BmnpkeZgz_wSdNfQ@mail.gmail.com>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: krbdev-bounces@mit.edu
On 5/5/26 13:18, Zvika Meiseles wrote:
> I suspect the krb5 code may execute unbalanced WSAStartup/WSACleanup calls,
> causing premature WinSock cleanup and application crash (following a crash
> I'm investigating where krb5 context cleanup causes WinSock destruction).
I think your analysis is correct. A failure opening or parsing the
config file (via os_init_paths()) will result in a call to WSACleanup()
with no corresponding call to WSAStartup().
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev