From 5e63eff8786855cfd430027adcebea4f5f49f191 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Mon, 3 Feb 2014 10:51:58 +0100 Subject: [PATCH] In xioshutdown() a wrong branch was chosen after RECVFROM type addresses --- CHANGES | 4 ++++ xioshutdown.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 1f21db5..258b4f1 100644 --- a/CHANGES +++ b/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 diff --git a/xioshutdown.c b/xioshutdown.c index 3b2a765..fc53068 100644 --- a/xioshutdown.c +++ b/xioshutdown.c @@ -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",