mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
Coverity Report: Fix issues for error type REVERSE_INULL (core modules)
* Fixes findings: 0-2,5,7-15,24-26,28-31 (issue ASTERISK-19648) Reported by: Matt Jordan ........ Merged revisions 368039 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 368042 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -255,7 +255,7 @@ static void *handle_tcptls_connection(void *data)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (tcptls_session && tcptls_session->parent->worker_fn) {
|
||||
if (tcptls_session->parent->worker_fn) {
|
||||
return tcptls_session->parent->worker_fn(tcptls_session);
|
||||
} else {
|
||||
return tcptls_session;
|
||||
@@ -457,9 +457,7 @@ client_start_error:
|
||||
close(desc->accept_fd);
|
||||
desc->accept_fd = -1;
|
||||
}
|
||||
if (tcptls_session) {
|
||||
ao2_ref(tcptls_session, -1);
|
||||
}
|
||||
ao2_ref(tcptls_session, -1);
|
||||
return NULL;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user