OSSP CVS Repository

ossp - Difference in ossp-pkg/sa/sa.c versions 1.46 and 1.47
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sa/sa.c 1.46 -> 1.47

--- sa.c 2002/01/02 13:21:07     1.46
+++ sa.c 2002/01/02 13:27:11     1.47
@@ -1147,6 +1147,10 @@
             /* enable/disable non-blocking I/O mode */
             int flags;
             int mode = (int)va_arg(ap, int);
+            if (sa->fdSocket == -1) {
+                rv = SA_ERR_USE;
+                break;
+            }
             if ((flags = fcntl(sa->fdSocket, F_GETFL, 0)) < 0) {
                 rv = SA_ERR_SYS;
                 break;

CVSTrac 2.0.1