From 75e643ad2d284d0544e3e03ec41451ae28536120 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Fri, 10 Oct 2008 06:39:46 +0200 Subject: [PATCH] socat option -lf did not log to file --- error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error.c b/error.c index 6284177..551788f 100644 --- a/error.c +++ b/error.c @@ -128,8 +128,8 @@ void diag_set(char what, const char *arg) { } if ((diagopts.logfile = fopen(arg, "a")) == NULL) { Error2("cannot open log file \"%s\": %s", arg, strerror(errno)); - break; } + break; case 's': if (diagopts.logfile != NULL && diagopts.logfile != stderr) { fclose(diagopts.logfile);