From: Greg Hudson Date: Thu, 23 Apr 2009 14:50:06 +0000 (+0000) Subject: Fix an error-handling block in sendto_kdc.c's setup_connection() which X-Git-Tag: krb5-1.8-alpha1~533 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=68a31da19d33de9df505286918141088658c3b82;p=krb5.git 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 --- 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; }