projects
/
profile
/
ivi
/
murphy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bfee9e
)
common: handle gracefully disconnect requests for NULL transports.
author
Krisztian Litkey
<krisztian.litkey@intel.com>
Mon, 18 Jun 2012 08:31:55 +0000
(11:31 +0300)
committer
Krisztian Litkey
<krisztian.litkey@intel.com>
Mon, 18 Jun 2012 08:31:55 +0000
(11:31 +0300)
src/common/transport.c
patch
|
blob
|
history
diff --git
a/src/common/transport.c
b/src/common/transport.c
index
f598c4b
..
be1216c
100644
(file)
--- a/
src/common/transport.c
+++ b/
src/common/transport.c
@@
-341,7
+341,7
@@
int mrp_transport_disconnect(mrp_transport_t *t)
{
int result;
- if (t->connected) {
+ if (t
!= NULL && t
->connected) {
MRP_TRANSPORT_BUSY(t, {
if (t->descr->req.disconnect(t)) {
t->connected = FALSE;