diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-10-02 17:55:25 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-10-02 17:55:25 +0000 |
commit | ded2ee778b9722a1f96084a853dbb97a7d596932 (patch) | |
tree | 5f3adab8b089d99051bc4526de82f0ecce117bcf | |
parent | 3e414a787a73142a0adfced4dbb6fa6b3007aa08 (diff) |
'pfctl -O foo' dumped core. A check was there, but didn't work.
-rw-r--r-- | sbin/pfctl/pfctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index cb16efe7ae7..666ce0f7bd3 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.43 2001/10/01 17:58:16 markus Exp $ */ +/* $OpenBSD: pfctl.c,v 1.44 2001/10/02 17:55:24 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -545,12 +545,12 @@ pfctl_hint(int dev, const char *opt, int opts) if (strcasecmp(opt, pf_hints[i].name) == 0) break; - hint = pf_hints[i].hint; - if (hint->name == NULL) { + if (pf_hints[i].name == NULL) { warnx("Bad hint name. Format -O hint"); return 1; } + hint = pf_hints[i].hint; for (i = 0; hint[i].name; i++) if ((r = pfctl_settimeout(dev, hint[i].name, hint[i].timeout))) return r; |