aboutsummaryrefslogtreecommitdiffstats
path: root/addons/ooh323c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-09-02 16:36:55 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-09-02 16:36:55 +0000
commitf42f6666bf9308a3d875b1903feb06a2af693ea9 (patch)
treee5ea9adcb8673952671295eb99ca7ca36a056ff5 /addons/ooh323c
parente0b70ef1aeef33048ca5a50803da4669b8e8cf08 (diff)
Merged revisions 284696 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r284696 | tilghman | 2010-09-02 11:27:52 -0500 (Thu, 02 Sep 2010) | 2 lines Fixing build ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@284700 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'addons/ooh323c')
-rw-r--r--addons/ooh323c/src/oochannels.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/ooh323c/src/oochannels.c b/addons/ooh323c/src/oochannels.c
index a6045aa34..c4ac24871 100644
--- a/addons/ooh323c/src/oochannels.c
+++ b/addons/ooh323c/src/oochannels.c
@@ -1994,9 +1994,8 @@ OOBOOL ooChannelsIsConnectionOK(OOH323CallData *call, OOSOCKET sock)
return FALSE;
}
- if(FD_ISSET(sock, &readfds))
- {
- char buf[2];
+ if (pfds.events & POLLIN) {
+ char buf[2];
if(ooSocketRecvPeek(sock, (ASN1OCTET*) buf, 2) == 0)
{
OOTRACEWARN3("Broken pipe detected. (%s, %s)", call->callType,