projects
/
oweals
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0ac713
)
fix getting local server address
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 13 Jan 2013 09:50:42 +0000
(10:50 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 13 Jan 2013 09:50:42 +0000
(10:50 +0100)
client.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index e2772dd45f490d5002ae83a543b065692b7e9558..6faa21cb56c79357bc413f914a06ebaae00169eb 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-469,7
+469,7
@@
bool uh_accept_client(int fd, bool tls)
set_addr(&cl->peer_addr, &addr);
sl = sizeof(addr);
- getsockname(fd, (struct sockaddr *) &addr, &sl);
+ getsockname(
s
fd, (struct sockaddr *) &addr, &sl);
set_addr(&cl->srv_addr, &addr);
cl->us = &cl->sfd.stream;