diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2003-05-10 06:14:30 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2003-05-10 06:14:30 +0000 |
commit | d9a9517f56654b7981385620ce38237dc463cdb8 (patch) | |
tree | 4379b7f36bcf074758ae8e66bf7743de9c32f10e /usr.sbin/authpf | |
parent | 57e528dacb7db484be78a7d8cb121b69f3dbc018 (diff) |
Be polite about leaving invalid data around in globals, just in case
someone comes along later, modifies the code, and runs into a problem.
OK beck@
Diffstat (limited to 'usr.sbin/authpf')
-rw-r--r-- | usr.sbin/authpf/authpf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c index 314fe090720..e439c1ef1f0 100644 --- a/usr.sbin/authpf/authpf.c +++ b/usr.sbin/authpf/authpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authpf.c,v 1.56 2003/05/10 00:51:53 henning Exp $ */ +/* $OpenBSD: authpf.c,v 1.57 2003/05/10 06:14:29 cloder Exp $ */ /* * Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org). @@ -642,6 +642,7 @@ change_filter(int add, const char *luser, const char *ipsrc) goto error; } + infile = NULL; fclose(f); f = NULL; } @@ -670,6 +671,8 @@ change_filter(int add, const char *luser, const char *ipsrc) error: if (f != NULL) fclose(f); + + infile = NULL; return (-1); } |