chiark
/
gitweb
/
~mdw
/
yaid
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e705d95
)
yaid.c (client_line): Set remote address earlier.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 22 Dec 2014 20:32:58 +0000
(20:32 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 18 Jan 2015 16:34:54 +0000
(16:34 +0000)
We need it for the log message if we can't parse the request.
yaid.c
patch
|
blob
|
blame
|
history
diff --git
a/yaid.c
b/yaid.c
index a9793a0ae776412d9cc7aaba28ad4bd297d5c7b0..2548cafb36c6a4ad3570c6cbc4c6bd7bbb34ed23 100644
(file)
--- a/
yaid.c
+++ b/
yaid.c
@@
-633,6
+633,7
@@
static void client_line(char *line, size_t len, void *p)
int i, t;
/* If the connection has closed, then tidy stuff away. */
+ c->q.s[R].addr = c->raddr;
c->q.s[L].port = c->q.s[R].port = 0;
if (!line) {
disconnect_client(c);
@@
-658,7
+659,6
@@
static void client_line(char *line, size_t len, void *p)
skipws(&q); if (*q) goto bad;
/* Identify the connection. Act on the result. */
- c->q.s[R].addr = c->raddr;
identify(&c->q);
switch (c->q.resp) {