artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2f8ed1
)
In sorflush() use m_purge() instead of handrolling it.
author
bluhm
<bluhm@openbsd.org>
Wed, 24 Feb 2021 13:19:48 +0000
(13:19 +0000)
committer
bluhm
<bluhm@openbsd.org>
Wed, 24 Feb 2021 13:19:48 +0000
(13:19 +0000)
no objections mvs@
sys/kern/uipc_socket.c
patch
|
blob
|
history
diff --git
a/sys/kern/uipc_socket.c
b/sys/kern/uipc_socket.c
index
71f2a49
..
861b15d
100644
(file)
--- a/
sys/kern/uipc_socket.c
+++ b/
sys/kern/uipc_socket.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: uipc_socket.c,v 1.25
5 2021/02/18 11:40:19 mvs Exp $
*/
+/* $OpenBSD: uipc_socket.c,v 1.25
6 2021/02/24 13:19:48 bluhm Exp $
*/
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
/*
@@
-1133,8
+1133,7
@@
sorflush(struct socket *so)
sb->sb_timeo_nsecs = INFSLP;
if (pr->pr_flags & PR_RIGHTS && pr->pr_domain->dom_dispose)
(*pr->pr_domain->dom_dispose)(m);
- while (m != NULL)
- m = m_freem(m);
+ m_purge(m);
}
#ifdef SOCKET_SPLICE