mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
merge anthm fix for atoi(NULL) segfault. Thanks jart for identifying the problem.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1560 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1575,8 +1575,11 @@ static void handle_message_new(eXosip_event_t *je)
|
||||
}
|
||||
|
||||
|
||||
expires = get_header_value(je, "expires");
|
||||
exptime = time(NULL) + atoi(expires) + 20;
|
||||
if ((expires = get_header_value(je, "expires"))) {
|
||||
exptime = time(NULL) + atoi(expires) + 20;
|
||||
} else {
|
||||
exptime = time(NULL) + 3600;
|
||||
}
|
||||
|
||||
|
||||
if (!find_reg_url(globals.db, je->request->from->url->username, sql, sizeof(sql))) {
|
||||
|
Reference in New Issue
Block a user