Check to make sure a structure pointer is non-NULL before touching it... crashing is bad, mmmk?
(closes issue #10831) Reported by: eliel Patches: chan_sip.c.patch uploaded by eliel (license 64) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84176 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
4d100d49d8
commit
9783d00623
1 changed files with 1 additions and 1 deletions
|
@ -18912,7 +18912,7 @@ static char *sip_reload(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a
|
|||
ast_verbose("Previous SIP reload not yet done\n");
|
||||
else {
|
||||
sip_reloading = TRUE;
|
||||
sip_reloadreason = a->fd ? CHANNEL_CLI_RELOAD : CHANNEL_MODULE_RELOAD;
|
||||
sip_reloadreason = (a && a->fd) ? CHANNEL_CLI_RELOAD : CHANNEL_MODULE_RELOAD;
|
||||
}
|
||||
ast_mutex_unlock(&sip_reload_lock);
|
||||
restart_monitor();
|
||||
|
|
Reference in a new issue