diff options
author | 2013-10-20 16:35:31 +0000 | |
---|---|---|
committer | 2013-10-20 16:35:31 +0000 | |
commit | a70b21f23c7dfc19f2eeb8d7586bf1f4e2240b4f (patch) | |
tree | 241894184f83e639da08e6cf94641e211dc6e477 | |
parent | Rename rn_mpath_count() to rn_mpath_active_count() since it will only (diff) | |
download | wireguard-openbsd-a70b21f23c7dfc19f2eeb8d7586bf1f4e2240b4f.tar.xz wireguard-openbsd-a70b21f23c7dfc19f2eeb8d7586bf1f4e2240b4f.zip |
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; |