diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-10-20 16:35:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-10-20 16:35:32 +0000 |
commit | 8c0d64f994697278c231a6b6e362814f934a5255 (patch) | |
tree | 202b00510d25bc89baa1e4983596c79ab91f8df3 | |
parent | c241792a702211f0c848e496bac8d7020a756bae (diff) |
Deep inside DIOCXCOMMIT, should return a real errno instead of -1
ok henning pelikan
-rw-r--r-- | sys/net/pf_ioctl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c index f7d60509b64..72c01f4fb26 100644 --- a/sys/net/pf_ioctl.c +++ b/sys/net/pf_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_ioctl.c,v 1.262 2013/10/17 16:27:42 bluhm Exp $ */ +/* $OpenBSD: pf_ioctl.c,v 1.263 2013/10/20 16:35:31 deraadt Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -780,13 +780,14 @@ int pf_commit_queues(char *anchor) { struct pf_queuehead *qswap; + int error; /* queue defs only in the main ruleset */ if (anchor[0]) return (0); - if (pf_remove_queues() != 0) - return (-1); + if ((error = pf_remove_queues()) != 0) + return (error); /* swap */ qswap = pf_queues_active; |