summaryrefslogtreecommitdiff
path: root/usr.sbin/ipmon/ipmon.c
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-06-23 16:54:00 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-06-23 16:54:00 +0000
commit852af3074a568a03719d74b9262ee986c7356687 (patch)
tree663e3d10b329907832f1ad49f58af2babdd178f5 /usr.sbin/ipmon/ipmon.c
parent0860cf4fa98efc94ba4665bc67690e8b61832d2e (diff)
only flush log if not using syslog
Diffstat (limited to 'usr.sbin/ipmon/ipmon.c')
-rw-r--r--usr.sbin/ipmon/ipmon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ipmon/ipmon.c b/usr.sbin/ipmon/ipmon.c
index eff7c03202e..595c0406e40 100644
--- a/usr.sbin/ipmon/ipmon.c
+++ b/usr.sbin/ipmon/ipmon.c
@@ -41,7 +41,7 @@
#include <ctype.h>
#if !defined(lint) && defined(LIBC_SCCS)
-static char rcsid[] = "$Id: ipmon.c,v 1.8 1997/06/09 09:52:33 niklas Exp $";
+static char rcsid[] = "$Id: ipmon.c,v 1.9 1997/06/23 16:53:59 kstailey Exp $";
#endif
#include "ip_fil_compat.h"
@@ -487,7 +487,8 @@ int blen;
dumphex(log, buf, sizeof(struct ipl_ci));
if (opts & OPT_HEXBODY)
dumphex(log, ip, lp->plen + lp->hlen);
- fflush(log);
+ if (!(opts & OPT_SYSLOG))
+ fflush(log);
}
int main(argc, argv)