From c8be999c3446ffc8a4bbe10116855e542b29129e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 25 Oct 2013 23:51:32 +0500 Subject: [PATCH] FS-5911 --resolve --- libs/sofia-sip/.update | 2 +- libs/sofia-sip/libsofia-sip-ua/tport/tport.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 5dc89e0a24..bd0253e8c0 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Tue Oct 22 16:25:25 CDT 2013 +Fri Oct 25 23:51:29 CDT 2013 diff --git a/libs/sofia-sip/libsofia-sip-ua/tport/tport.c b/libs/sofia-sip/libsofia-sip-ua/tport/tport.c index aa257f79f8..62193e9135 100644 --- a/libs/sofia-sip/libsofia-sip-ua/tport/tport.c +++ b/libs/sofia-sip/libsofia-sip-ua/tport/tport.c @@ -2094,6 +2094,10 @@ void tport_close(tport_t *self) SU_DEBUG_5(("%s(%p): " TPN_FORMAT "\n", __func__, (void *)self, TPN_ARGS(self->tp_name))); + if (self->tp_refs == -1) { + self->tp_refs = 0; + } + if (self->tp_closed || !tport_is_secondary(self)) return;