commit | a7fee637af3ca90077bece90af9887a43f246669 | [log] [tgz] |
---|---|---|
author | kurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | Fri Nov 23 08:36:18 2012 +0000 |
committer | kurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | Fri Nov 23 08:36:18 2012 +0000 |
tree | 8711a121591d1b6a73669262b4784699b9a5c294 | |
parent | 0aaabd44c298af37c93704a4b96dfd2be2975150 [diff] [blame] |
r4425 in private: Double check the FD set to be sure that the correct FD was really touched. git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4513 19bc5d8c-e614-43d4-8b26-e1612bc8e597
diff --git a/CommonLibs/Sockets.cpp b/CommonLibs/Sockets.cpp index b343b7e..62841ad 100644 --- a/CommonLibs/Sockets.cpp +++ b/CommonLibs/Sockets.cpp
@@ -190,7 +190,8 @@ throw SocketError(); } if (sel==0) return -1; - return read(buffer); + if (FD_ISSET(mSocketFD,&fds)) return read(buffer); + return -1; }