diff options
author | bju <bju@maxi.fritz.box> | 2014-01-22 02:28:34 +0100 |
---|---|---|
committer | bju <bju@maxi.fritz.box> | 2014-01-22 02:28:34 +0100 |
commit | 321bebe669a5aafc2c4ff0e9f59e60de2fa79bac (patch) | |
tree | f8b81b463027a60481f8f41939eaa5a18824ce19 /vdr-vdrmanager/compressor.cpp | |
parent | bc2c9e64787d4682bd9f3a3340f8b46497f63bb3 (diff) | |
download | vdr-manager-321bebe669a5aafc2c4ff0e9f59e60de2fa79bac.tar.gz vdr-manager-321bebe669a5aafc2c4ff0e9f59e60de2fa79bac.tar.bz2 |
http://projects.vdr-developer.org/issues/1267:
- some fixes on client side certificate validation
- added SSL server side support to the plugin
Diffstat (limited to 'vdr-vdrmanager/compressor.cpp')
-rw-r--r-- | vdr-vdrmanager/compressor.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vdr-vdrmanager/compressor.cpp b/vdr-vdrmanager/compressor.cpp index 6a479f3..c8322b8 100644 --- a/vdr-vdrmanager/compressor.cpp +++ b/vdr-vdrmanager/compressor.cpp @@ -56,7 +56,13 @@ bool cCompressor::CompressGzip(string text) { close(in_fd[0]); close(out_fd[1]); - write(in_fd[1], text.c_str(), text.length()); + if (write(in_fd[1], text.c_str(), text.length()) != text.length()) + { + close(in_fd[1]); + close(out_fd[0]); + return false; + } + close(in_fd[1]); char buf[32*1024]; |