projects
/
haproxy-2.3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
876ed55
)
CLEANUP: src/fd.c: mask setsockopt with DISGUISE
author
Ilya Shipitsin
<chipitsine@gmail.com>
Thu, 2 Apr 2020 10:02:08 +0000
(15:02 +0500)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 2 Apr 2020 13:10:17 +0000
(15:10 +0200)
we do not care of what is returned, let static analyzers to
know that
src/fd.c
patch
|
blob
|
history
diff --git
a/src/fd.c
b/src/fd.c
index
d026b15
..
1934bd0
100644
(file)
--- a/
src/fd.c
+++ b/
src/fd.c
@@
-314,8
+314,8
@@
static void fd_dodelete(int fd, int do_close)
if (fdtab[fd].linger_risk) {
/* this is generally set when connecting to servers */
- setsockopt(fd, SOL_SOCKET, SO_LINGER,
- (struct linger *) &nolinger, sizeof(struct linger));
+ DISGUISE(setsockopt(fd, SOL_SOCKET, SO_LINGER,
+ (struct linger *) &nolinger, sizeof(struct linger)));
}
if (cur_poller.clo)
cur_poller.clo(fd);