OSSP CVS Repository

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

ossp-pkg/sa/sa.c 1.66 -> 1.67

--- sa.c 2002/10/30 20:22:06     1.66
+++ sa.c 2002/10/31 07:20:10     1.67
@@ -1213,7 +1213,7 @@
             else
                 cp = (char *)realloc(sa->cpReadBuf, size);
             if (cp == NULL)
-                return SA_RC(SA_ERR_SYS);
+                return SA_RC(SA_ERR_MEM);
             sa->cpReadBuf = cp;
             sa->nReadSize = size;
         }
@@ -1234,7 +1234,7 @@
             else
                 cp = (char *)realloc(sa->cpWriteBuf, size);
             if (cp == NULL)
-                return SA_RC(SA_ERR_SYS);
+                return SA_RC(SA_ERR_MEM);
             sa->cpWriteBuf = cp;
             sa->nWriteSize = size;
         }
@@ -2203,7 +2203,7 @@
     if ((nBuf+1) > sizeof(caBuf)) {
         /* requires a larger buffer, so allocate dynamically */
         if ((cpBuf = (char *)malloc(nBuf+1)) == NULL)
-            return SA_RC(SA_ERR_SYS);
+            return SA_RC(SA_ERR_MEM);
     }
     else {
         /* fits into small buffer, so allocate statically */

CVSTrac 2.0.1