aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-08 18:50:45 +0000
committermnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-08 18:50:45 +0000
commit37bc8c80dbeba08edc962eccaaaad2f482f1cfb3 (patch)
treeba97c8e01d12fab7445e8199d36017437503411a /apps
parentdbc8563f355c6076094bb0c21b22c00a555feec8 (diff)
Don't pass null to manager_event()
(closes issue #17087) Reported by: bklang Patches: app-fax-null-sprintf1.diff uploaded by mnicholson (license 96) Tested by: bklang git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269083 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_fax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_fax.c b/apps/app_fax.c
index a664b1c96..9b1972d97 100644
--- a/apps/app_fax.c
+++ b/apps/app_fax.c
@@ -227,8 +227,8 @@ static void phase_e_handler(t30_state_t *f, void *user_data, int result)
s->finished = 1;
- local_ident = t30_get_tx_ident(f);
- far_ident = t30_get_rx_ident(f);
+ local_ident = S_OR(t30_get_tx_ident(f), "");
+ far_ident = S_OR(t30_get_rx_ident(f), "");
pbx_builtin_setvar_helper(s->chan, "FAXSTATUS", "SUCCESS");
pbx_builtin_setvar_helper(s->chan, "FAXERROR", NULL);
pbx_builtin_setvar_helper(s->chan, "REMOTESTATIONID", far_ident);