diff options
author | 2015-10-26 14:12:13 +0000 | |
---|---|---|
committer | 2015-10-26 14:12:13 +0000 | |
commit | bbab44f3533775e785680803bae67d35ee71aaa3 (patch) | |
tree | 43e38b14989166e91fcc845a66e3afc308d0450f | |
parent | Rename err() to error() to prevent confusion with the stdlib function. (diff) | |
download | wireguard-openbsd-bbab44f3533775e785680803bae67d35ee71aaa3.tar.xz wireguard-openbsd-bbab44f3533775e785680803bae67d35ee71aaa3.zip |
Let SLIST_REMOVE invalidate the pointer in more cases.
OK jsing@
-rw-r--r-- | sys/sys/queue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/queue.h b/sys/sys/queue.h index f8f09bf12e7..792fb6706fb 100644 --- a/sys/sys/queue.h +++ b/sys/sys/queue.h @@ -1,4 +1,4 @@ -/* $OpenBSD: queue.h,v 1.38 2013/07/03 15:05:21 fgsch Exp $ */ +/* $OpenBSD: queue.h,v 1.39 2015/10/26 14:12:13 bluhm Exp $ */ /* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */ /* @@ -157,8 +157,8 @@ struct { \ curelm = curelm->field.sle_next; \ curelm->field.sle_next = \ curelm->field.sle_next->field.sle_next; \ - _Q_INVALIDATE((elm)->field.sle_next); \ } \ + _Q_INVALIDATE((elm)->field.sle_next); \ } while (0) /* |