mirror of
https://github.com/moparisthebest/socat
synced 2024-12-21 14:38:48 -05:00
In xioshutdown() a wrong branch was chosen after RECVFROM type addresses
This commit is contained in:
parent
b732d00d30
commit
5e63eff878
4
CHANGES
4
CHANGES
@ -12,6 +12,10 @@ corrections:
|
||||
--disable-genericsocket in the help text. Thanks to Ben Gardiner for
|
||||
reporting and patching this bug
|
||||
|
||||
In xioshutdown() a wrong branch was chosen after RECVFROM type addresses.
|
||||
Probably no impact.
|
||||
Thanks to David Binderman for reproting this issue.
|
||||
|
||||
porting:
|
||||
Performed changes for Fedora release 19
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* source: xioshutdown.c */
|
||||
/* Copyright Gerhard Rieger 2001-2009 */
|
||||
/* Copyright Gerhard Rieger */
|
||||
/* Published under the GNU General Public License V.2, see file COPYING */
|
||||
|
||||
/* this is the source of the extended shutdown function */
|
||||
@ -127,7 +127,8 @@ int xioshutdown(xiofile_t *sock, int how) {
|
||||
}
|
||||
Alarm(0);
|
||||
}
|
||||
} else if ((sock->stream.dtype & XIODATA_MASK) == XIODATA_RECVFROM) {
|
||||
} else if ((sock->stream.dtype & XIODATA_MASK) ==
|
||||
(XIODATA_RECVFROM & XIODATA_MASK)) {
|
||||
if (how >= 1) {
|
||||
if (Close(sock->stream.fd) < 0) {
|
||||
Info2("close(%d): %s",
|
||||
|
Loading…
Reference in New Issue
Block a user