Fix an error-handling block in sendto_kdc.c's setup_connection() which
authorGreg Hudson <ghudson@mit.edu>
Thu, 23 Apr 2009 14:50:06 +0000 (14:50 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 23 Apr 2009 14:50:06 +0000 (14:50 +0000)
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

index 86f372299f0e1d7ac957804b3e43762a285e722c..1e0a4792a2c03f2175192617c3466b75007eb71f 100644 (file)
@@ -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;
            }