projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Log incoming IP address when accepting a connection
[trust_router.git]
/
tid
/
tids.c
diff --git
a/tid/tids.c
b/tid/tids.c
index
6a5b172
..
e780a22
100644
(file)
--- a/
tid/tids.c
+++ b/
tid/tids.c
@@
-399,8
+399,8
@@
int tids_accept(TIDS_INSTANCE *tids, int listen)
int pipe_fd[2];
struct tid_process tp = {0};
- if (0 > (conn =
accept(listen, NULL, NULL
))) {
-
perror("Error from TIDS Server accept()
");
+ if (0 > (conn =
tr_sock_accept(listen
))) {
+
tr_err("tids_accept: Error accepting connection
");
return 1;
}