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
changes/78/20478/2
Kirill Solomko 8 years ago
parent c93392e83d
commit 794b178dd1

@ -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