mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-20 18:24:13 +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:
1 parent
8b7f997c3f
commit
9c2442886d
2 files changed
+5
-3
No files matched your search
@@ -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