Skip to content
Snippets Groups Projects
Commit 4c938510 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #9847: check that transport is initialized

parent 22dd9bb6
No related branches found
No related tags found
No related merge requests found
......@@ -470,7 +470,10 @@ SipTransport::createUdpTransport(const std::string &interface, unsigned int port
pjsip_tpselector *SipTransport::initTransportSelector(pjsip_transport *transport, pj_pool_t *tp_pool) const
{
assert(transport);
if (!transport) {
ERROR("SipTransport: transport is not initialized");
return NULL;
}
pjsip_tpselector *tp = (pjsip_tpselector *) pj_pool_zalloc(tp_pool, sizeof(pjsip_tpselector));
tp->type = PJSIP_TPSELECTOR_TRANSPORT;
tp->u.transport = transport;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment