summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frantzen <frantzen@cvs.openbsd.org>2002-04-09 23:19:02 +0000
committerMike Frantzen <frantzen@cvs.openbsd.org>2002-04-09 23:19:02 +0000
commitf18bb66a23326e133c56b6b9acc6ee3d69e333b6 (patch)
treef15e2b260e36b6913269b268b4205afd8cb58ce5
parentdb9f4d1bcfa1e764b374db740b1eaa83193d9b4e (diff)
make sure we fflush() after a sending a message and fix a typo in a comment
ok beck@ and deraadt@
-rw-r--r--usr.sbin/authpf/authpf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c
index 1675955348a..bd41c97b49f 100644
--- a/usr.sbin/authpf/authpf.c
+++ b/usr.sbin/authpf/authpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authpf.c,v 1.11 2002/04/09 20:07:16 beck Exp $ */
+/* $OpenBSD: authpf.c,v 1.12 2002/04/09 23:19:01 frantzen Exp $ */
/*
* Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org).
@@ -400,6 +400,7 @@ print_message(char *filename)
return;
}
} while (fputs(buf, stdout) != EOF && !feof(f));
+ fflush(stdout);
fclose(f);
}
@@ -785,7 +786,7 @@ changefilter(int add, char *luser, char *ipsrc)
/*
* authpf_kill_states:
- * This is to kill off states that would otherwide be left behind stateful
+ * This is to kill off states that would otherwise be left behind stateful
* rules. This means we don't need to allow in more traffic than we really
* want to, since we don't have to worry about any luser sessions lasting
* longer than their ssh session. This function is based on