Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2019 14:19:14 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r353554 - stable/12/sys/kern
Message-ID:  <201910151419.x9FEJE5Y000858@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Tue Oct 15 14:19:14 2019
New Revision: 353554
URL: https://svnweb.freebsd.org/changeset/base/353554

Log:
  MFC r353331:
  Fix handling of empty SCM_RIGHTS messages.

Modified:
  stable/12/sys/kern/uipc_usrreq.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/kern/uipc_usrreq.c
==============================================================================
--- stable/12/sys/kern/uipc_usrreq.c	Tue Oct 15 14:18:40 2019	(r353553)
+++ stable/12/sys/kern/uipc_usrreq.c	Tue Oct 15 14:19:14 2019	(r353554)
@@ -2318,7 +2318,8 @@ unp_internalize(struct mbuf **controlp, struct thread 
 			goto out;
 		}
 
-		controlp = &(*controlp)->m_next;
+		if (*controlp != NULL)
+			controlp = &(*controlp)->m_next;
 		if (CMSG_SPACE(datalen) < clen) {
 			clen -= CMSG_SPACE(datalen);
 			cm = (struct cmsghdr *)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910151419.x9FEJE5Y000858>