From c8d63d47cd3837e603540580ec4ab6f4d5d3bb0e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 5 Jun 2009 10:07:17 +0200 Subject: Fix bug 6392: Exit log2pcaphex if a requested output file can't be opened Thanks to Slava Semushin for reporting! --- source3/utils/log2pcaphex.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3') 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; } } -- cgit