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;
 }