TT#35426 get_fax(): fix fax data print into a closed filehandle

* in case of a specified fax format (pdf)
      the temp filehandle had been closed before filled in with data

Change-Id: I938cfa47051a525069902f73b83de121838c00bb
(cherry picked from commit 794b178dd1)
changes/94/20494/2
Kirill Solomko 7 years ago
parent 305da2ade0
commit 544ed61540

@ -128,8 +128,8 @@ sub get_fax {
return;
}
binmode $tmp_fh;
close $tmp_fh;
print $tmp_fh $item->voip_fax_data->data;
close $tmp_fh;
} else {
return ($item->voip_fax_data->data, $ext);
}

Loading…
Cancel
Save