summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-05 10:07:17 +0200
committerVolker Lendecke <vl@samba.org>2009-06-05 10:12:11 +0200
commitc8d63d47cd3837e603540580ec4ab6f4d5d3bb0e (patch)
tree675b809ddaa699a97547d3ea22efef8c40a43499 /source3/utils
parentfcc7372975757d19e9e4366a26396bf210bdf86a (diff)
downloadsamba-c8d63d47cd3837e603540580ec4ab6f4d5d3bb0e.tar.gz
samba-c8d63d47cd3837e603540580ec4ab6f4d5d3bb0e.tar.bz2
samba-c8d63d47cd3837e603540580ec4ab6f4d5d3bb0e.zip
Fix bug 6392: Exit log2pcaphex if a requested output file can't be opened
Thanks to Slava Semushin <php-coder@altlinux.org> for reporting!
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/log2pcaphex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/log2pcaphex.c b/source3/utils/log2pcaphex.c
index b1a8a27c22..3f8e1c1d5f 100644
--- a/source3/utils/log2pcaphex.c
+++ b/source3/utils/log2pcaphex.c
@@ -337,6 +337,7 @@ int main (int argc, char **argv)
if(!out) {
perror("fopen");
fprintf(stderr, "Can't find %s, using stdout...\n", outfile);
+ return 1;
}
}