Merged revisions 284696 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 2 Sep 2010 16:36:55 +0000 (16:36 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 2 Sep 2010 16:36:55 +0000 (16:36 +0000)
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: https://origsvn.digium.com/svn/asterisk/trunk@284700 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addons/ooh323c/src/oochannels.c

index a6045aa..c4ac248 100644 (file)
@@ -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,