From: Volker Lendecke Date: Fri, 5 Jun 2009 08:07:17 +0000 (+0200) Subject: Fix bug 6392: Exit log2pcaphex if a requested output file can't be opened X-Git-Tag: tdb-1.1.5~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8d63d47cd3837e603540580ec4ab6f4d5d3bb0e;p=thirdparty%2Fsamba.git Fix bug 6392: Exit log2pcaphex if a requested output file can't be opened Thanks to Slava Semushin for reporting! --- diff --git a/source3/utils/log2pcaphex.c b/source3/utils/log2pcaphex.c index b1a8a27c228..3f8e1c1d5f5 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; } }