transport: fix shutdown crash during connection setup
commit78185e83f7f107cf4631ad6927e45c8caf334ab5
authorStefan Becker <chemobejk@gmail.com>
Fri, 4 Nov 2011 20:12:38 +0000 (4 22:12 +0200)
committerStefan Becker <chemobejk@gmail.com>
Fri, 4 Nov 2011 20:12:38 +0000 (4 22:12 +0200)
treee150e911c564bdb2e593402d3385310405a676fd
parent58d213644720b3b011072e6fe3762c6c506ff4c7
transport: fix shutdown crash during connection setup

If libpurple shuts down our account while we are setting up the SIP
connection then sipe_private->transport is NULL. Therefore we need to
add a NULL pointer check in sip_transport_disconnect() to avoid a crash.
src/core/sip-transport.c