fixing RMR messages with negative size
[ric-plt/lib/rmr.git] / src / rmr / si / src / si95 / sipoll.c
index aa85e8b..384eef2 100644 (file)
@@ -1,8 +1,8 @@
 // vim: noet sw=4 ts=4:
 /*
 ==================================================================================
-    Copyright (c) 2020 Nokia
-    Copyright (c) 2020 AT&T Intellectual Property.
+    Copyright (c) 2020-2021 Nokia
+    Copyright (c) 2020-2021 AT&T Intellectual Property.
 
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
@@ -74,7 +74,7 @@ extern int SIpoll( struct ginfo_blk *gptr, int msdelay )
     pstat = select( gptr->fdcount, &gptr->readfds, &gptr->writefds,
                                &gptr->execpfds, &delay );
 
-   if( (pstat < 0 && errno != EINTR)  )
+   if( pstat < 0 && errno != EINTR  )
     {                             //  poll fail or termination signal rcvd
      gptr->fdcount = 0;           //  prevent trying to look at a session
      gptr->flags |= GIF_SHUTDOWN; //  cause cleanup and exit at end