chiark
/
gitweb
/
~mdw
/
mLib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
72126ef
)
sel/ident.c: Don't close the descriptor twice on immediate connect failure.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 9 Jun 2018 13:54:40 +0000
(14:54 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 9 Jun 2018 14:00:24 +0000
(15:00 +0100)
Confusingly, `conn_init' has already done that.
sel/ident.c
patch
|
blob
|
blame
|
history
diff --git
a/sel/ident.c
b/sel/ident.c
index f8ce0c7bd384a108ebdfa15fcd0f015748fa97fd..0017f0a3877faef70c4d36d975245caa47b22f07 100644
(file)
--- a/
sel/ident.c
+++ b/
sel/ident.c
@@
-282,7
+282,7
@@
static void go(ident_request *rq)
sin.sin_addr = rq->remote.sin_addr;
if (conn_init(&rq->c, rq->s, fd, (struct sockaddr *)&sin, sizeof(sin),
connected, rq))
sin.sin_addr = rq->remote.sin_addr;
if (conn_init(&rq->c, rq->s, fd, (struct sockaddr *)&sin, sizeof(sin),
connected, rq))
- goto fail_
1
;
+ goto fail_
0
;
/* --- Finish off initializing the block --- */
/* --- Finish off initializing the block --- */