diff options
Diffstat (limited to 'res/res_phoneprov.c')
-rw-r--r-- | res/res_phoneprov.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c index 8f5acf13b..cd63a265a 100644 --- a/res/res_phoneprov.c +++ b/res/res_phoneprov.c @@ -451,7 +451,9 @@ static struct ast_str *phoneprov_callback(struct ast_tcptls_session_instance *se ast_get_version(), buf, len, route->file->mime_type); while ((len = read(fd, buf, sizeof(buf))) > 0) { - fwrite(buf, 1, len, ser->f); + if (fwrite(buf, 1, len, ser->f) != len) { + ast_log(LOG_WARNING, "fwrite() failed: %s\n", strerror(errno)); + } } close(fd); |