Author: sayer
Date: 2008-12-03 11:55:13 +0100 (Wed, 03 Dec 2008)
New Revision: 1159
Modified:
branches/1.0.0/apps/ivr/IvrDialogBase.cpp
branches/1.0.0/apps/ivr/IvrSipDialog.cpp
branches/1.0.0/apps/ivr/IvrSipReply.cpp
branches/1.0.0/apps/ivr/IvrSipRequest.cpp
Log:
checking whether parse args really returned object (e.g. on allocation error)
(backport from trunk)
Modified: branches/1.0.0/apps/ivr/IvrDialogBase.cpp
===================================================================
--- branches/1.0.0/apps/ivr/IvrDialogBase.cpp 2008-12-03 04:25:38 UTC (rev
1158)
+++ branches/1.0.0/apps/ivr/IvrDialogBase.cpp 2008-12-03 10:55:13 UTC (rev
1159)
@@ -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: branches/1.0.0/apps/ivr/IvrSipDialog.cpp
===================================================================
--- branches/1.0.0/apps/ivr/IvrSipDialog.cpp 2008-12-03 04:25:38 UTC (rev
1158)
+++ branches/1.0.0/apps/ivr/IvrSipDialog.cpp 2008-12-03 10:55:13 UTC (rev
1159)
@@ -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: branches/1.0.0/apps/ivr/IvrSipReply.cpp
===================================================================
--- branches/1.0.0/apps/ivr/IvrSipReply.cpp 2008-12-03 04:25:38 UTC (rev
1158)
+++ branches/1.0.0/apps/ivr/IvrSipReply.cpp 2008-12-03 10:55:13 UTC (rev
1159)
@@ -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: branches/1.0.0/apps/ivr/IvrSipRequest.cpp
===================================================================
--- branches/1.0.0/apps/ivr/IvrSipRequest.cpp 2008-12-03 04:25:38 UTC (rev
1158)
+++ branches/1.0.0/apps/ivr/IvrSipRequest.cpp 2008-12-03 10:55:13 UTC (rev
1159)
@@ -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