OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc_proc.c versions 1.40 and 1.41
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc_proc.c 1.40 -> 1.41

--- rc_proc.c    2003/05/28 15:09:29     1.40
+++ rc_proc.c    2003/06/03 15:26:52     1.41
@@ -270,7 +270,8 @@
         /* code is used in the script sections to be executed               */
         for (nSecs = 0; nSecs < pRc->m_pAnal->m_nSecs; nSecs++) {
             for (nTmp = 0; nTmp < pRc->m_pAnal->m_nRcs; nTmp++) {
-                if (pRc->m_ppLabvec[nTmp]->m_ppSecvec) {
+                if (pRc->m_ppLabvec[nTmp]->m_ppSecvec && \
+                    pRc->m_ppLabvec[nTmp]->m_ppSecvec[nSecs]) {
                     nRunuid = getuid();
                     nSectuid = pRc->m_ppLabvec[nTmp]->m_ppSecvec[nSecs]->m_nUid;
                     /* See if root user status is needed, and bail out if so */

CVSTrac 2.0.1