projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12f5bc0
)
Fix an error-handling block in sendto_kdc.c's setup_connection() which
author
Greg Hudson
<ghudson@mit.edu>
Thu, 23 Apr 2009 14:50:06 +0000
(14:50 +0000)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/src/lib/krb5/os/sendto_kdc.c
b/src/lib/krb5/os/sendto_kdc.c
index 86f372299f0e1d7ac957804b3e43762a285e722c..1e0a4792a2c03f2175192617c3466b75007eb71f 100644
(file)
--- 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;
}