mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 04:03:53 +00:00
fix seg with register w/ no contact.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3968 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5db9b9d0b7
commit
44a3909e79
@ -2959,7 +2959,7 @@ static uint8_t handle_register(nua_t *nua,
|
||||
char *rpid = "unknown";
|
||||
const char *display = "\"user\"";
|
||||
|
||||
if (contact) {
|
||||
if (contact && contact->m_url) {
|
||||
char *port = (char *) contact->m_url->url_port;
|
||||
display = contact->m_display;
|
||||
|
||||
@ -2989,7 +2989,7 @@ static uint8_t handle_register(nua_t *nua,
|
||||
|
||||
if (expires) {
|
||||
exptime = expires->ex_delta;
|
||||
} else if (contact->m_expires) {
|
||||
} else if (contact && contact->m_expires) {
|
||||
exptime = atol(contact->m_expires);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user