From: Anthony Minessale Date: Thu, 9 Feb 2012 17:08:46 +0000 (-0600) Subject: FS-3894 --resolve X-Git-Tag: v1.2-rc1~19^2^2~68^2~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4774047b8ff5db7a5f7d122f4000528ccf48f18;p=thirdparty%2Ffreeswitch.git FS-3894 --resolve --- diff --git a/src/switch_caller.c b/src/switch_caller.c index 715ab85486..ca6be0b7ac 100644 --- a/src/switch_caller.c +++ b/src/switch_caller.c @@ -136,14 +136,15 @@ SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_dup(switch_memor profile->flags = tocopy->flags; profile->pool = pool; profile->direction = tocopy->direction; - profile->times = tocopy->times; - profile->times->answered = 0; - profile->times->progress = 0; - profile->times->progress_media = 0; - profile->times->created = switch_time_now(); - profile->times->profile_created = profile->times->created; - profile->times->hungup = 0; - profile->times->transferred = 0; + if ((profile->times = tocopy->times)) { + profile->times->answered = 0; + profile->times->progress = 0; + profile->times->progress_media = 0; + profile->times->created = switch_time_now(); + profile->times->profile_created = profile->times->created; + profile->times->hungup = 0; + profile->times->transferred = 0; + } if (tocopy->soft) { profile_node_t *pn;