Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed HTTP-client query-string handling bug.
[doldaconnect.git]
/
daemon
/
filenet.c
diff --git
a/daemon/filenet.c
b/daemon/filenet.c
index
64870d2
..
18c74ef
100644
(file)
--- a/
daemon/filenet.c
+++ b/
daemon/filenet.c
@@
-180,12
+180,17
@@
static void conncb(struct socket *sk, int err, struct fnetnode *data)
static void resolvecb(struct sockaddr *addr, int addrlen, struct fnetnode *data)
{
static void resolvecb(struct sockaddr *addr, int addrlen, struct fnetnode *data)
{
- if(addr == NULL)
+ struct socket *sk;
+
+ sk = NULL;
+ if(addr != NULL)
+ sk = netcsconn(addr, addrlen, (void (*)(struct socket *, int, void *))conncb, data);
+ if(sk == NULL)
{
killfnetnode(data);
putfnetnode(data);
} else {
{
killfnetnode(data);
putfnetnode(data);
} else {
- putsock(
netcsconn(addr, addrlen, (void (*)(struct socket *, int, void *))conncb, data)
);
+ putsock(
sk
);
}
}
}
}