Author: sayer
Date: 2008-12-03 04:10:19 +0100 (Wed, 03 Dec 2008)
New Revision: 1157

Modified:
   trunk/apps/ivr/IvrDialogBase.cpp
   trunk/apps/ivr/IvrSipDialog.cpp
   trunk/apps/ivr/IvrSipReply.cpp
   trunk/apps/ivr/IvrSipRequest.cpp
Log:
checking whether parse args really returned object (e.g. on allocation error)

Modified: trunk/apps/ivr/IvrDialogBase.cpp
===================================================================
--- trunk/apps/ivr/IvrDialogBase.cpp    2008-12-02 22:39:38 UTC (rev 1156)
+++ trunk/apps/ivr/IvrDialogBase.cpp    2008-12-03 03:10:19 UTC (rev 1157)
@@ -36,7 +36,7 @@
       return NULL;
     }
     
-    if (!PyCObject_Check(o_dlg)){
+    if ((NULL == o_dlg) || !PyCObject_Check(o_dlg)){
            
       Py_DECREF(self);
       return NULL;

Modified: trunk/apps/ivr/IvrSipDialog.cpp
===================================================================
--- trunk/apps/ivr/IvrSipDialog.cpp     2008-12-02 22:39:38 UTC (rev 1156)
+++ trunk/apps/ivr/IvrSipDialog.cpp     2008-12-03 03:10:19 UTC (rev 1157)
@@ -26,7 +26,7 @@
       return NULL;
     }
     
-    if (!PyCObject_Check(o_dlg)){
+    if ((NULL == o_dlg) || !PyCObject_Check(o_dlg)){
            
       Py_DECREF(self);
       return NULL;

Modified: trunk/apps/ivr/IvrSipReply.cpp
===================================================================
--- trunk/apps/ivr/IvrSipReply.cpp      2008-12-02 22:39:38 UTC (rev 1156)
+++ trunk/apps/ivr/IvrSipReply.cpp      2008-12-03 03:10:19 UTC (rev 1157)
@@ -48,7 +48,7 @@
       return NULL;
     }
     
-    if (!PyCObject_Check(o_req)){
+    if ((NULL == o_req) || !PyCObject_Check(o_req)){
            
       Py_DECREF(self);
       return NULL;

Modified: trunk/apps/ivr/IvrSipRequest.cpp
===================================================================
--- trunk/apps/ivr/IvrSipRequest.cpp    2008-12-02 22:39:38 UTC (rev 1156)
+++ trunk/apps/ivr/IvrSipRequest.cpp    2008-12-03 03:10:19 UTC (rev 1157)
@@ -49,7 +49,7 @@
       return NULL;
     }
     
-    if (!PyCObject_Check(o_req)){
+    if ((NULL == o_req) || !PyCObject_Check(o_req)){
            
       Py_DECREF(self);
       return NULL;

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to