From ded2ee778b9722a1f96084a853dbb97a7d596932 Mon Sep 17 00:00:00 2001 From: Daniel Hartmeier Date: Tue, 2 Oct 2001 17:55:25 +0000 Subject: 'pfctl -O foo' dumped core. A check was there, but didn't work. --- sbin/pfctl/pfctl.c | 6 +++--- 1 file 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; -- cgit v1.2.3