diff options
Diffstat (limited to 'rpc/rpc-lib/src/rpc-transport.c')
| -rw-r--r-- | rpc/rpc-lib/src/rpc-transport.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/rpc-transport.c b/rpc/rpc-lib/src/rpc-transport.c index bf0e4dfd6e9..249c9398f79 100644 --- a/rpc/rpc-lib/src/rpc-transport.c +++ b/rpc/rpc-lib/src/rpc-transport.c @@ -1124,7 +1124,8 @@ rpc_transport_unref (rpc_transport_t *this)  	pthread_mutex_unlock (&this->lock);  	if (refcount == 0) { -		this->notify (this, this->mydata, RPC_TRANSPORT_CLEANUP, NULL); +                if (this->mydata) +                        this->notify (this, this->mydata, RPC_TRANSPORT_CLEANUP, NULL);  		rpc_transport_destroy (this);  	}  | 
