Archived
14
0
Fork 0

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:
file 2007-10-01 15:57:04 +00:00
parent 4d100d49d8
commit 9783d00623

View file

@ -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();