From 68a31da19d33de9df505286918141088658c3b82 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 23 Apr 2009 14:50:06 +0000 Subject: [PATCH] Fix an error-handling block in sendto_kdc.c's setup_connection() which would always attempt to close -1. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22273 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/sendto_kdc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/krb5/os/sendto_kdc.c b/src/lib/krb5/os/sendto_kdc.c index 86f372299..1e0a4792a 100644 --- a/src/lib/krb5/os/sendto_kdc.c +++ b/src/lib/krb5/os/sendto_kdc.c @@ -640,8 +640,6 @@ setup_connection (struct conn_state *state, struct addrinfo *ai, *udpbufp = malloc(krb5_max_dgram_size); if (*udpbufp == 0) { dperror("malloc(krb5_max_dgram_size)"); - (void) closesocket(state->fd); - state->fd = INVALID_SOCKET; state->state = FAILED; return 1; } -- 2.26.2