diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2017-06-02 17:39:05 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2017-06-02 17:39:05 +0000 |
commit | bd617e3b9887650446f7c75bb79497db9c517f33 (patch) | |
tree | 121b0e3ddf91a4b7bab40311e20e6ef033ae6016 /sys/kern/uipc_usrreq.c | |
parent | 0c3c207ffd5da278bb3b2e00528ba926042bcd6e (diff) | |
download | src-bd617e3b9887650446f7c75bb79497db9c517f33.tar.gz src-bd617e3b9887650446f7c75bb79497db9c517f33.zip |
Remove write only flag UNP_HAVEPCCACHED.
Notes
Notes:
svn path=/head/; revision=319503
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r-- | sys/kern/uipc_usrreq.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index d4649a759fc7..1d396bab2f87 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -758,7 +758,6 @@ uipc_listen(struct socket *so, int backlog, struct thread *td) error = solisten_proto_check(so); if (error == 0) { cru2x(td->td_ucred, &unp->unp_peercred); - unp->unp_flags |= UNP_HAVEPCCACHED; solisten_proto(so, backlog); } SOCK_UNLOCK(so); @@ -1429,8 +1428,6 @@ unp_connectat(int fd, struct socket *so, struct sockaddr *nam, * listen(); uipc_listen() cached that process's credentials * at that time so we can use them now. */ - KASSERT(unp2->unp_flags & UNP_HAVEPCCACHED, - ("unp_connect: listener without cached peercred")); memcpy(&unp->unp_peercred, &unp2->unp_peercred, sizeof(unp->unp_peercred)); unp->unp_flags |= UNP_HAVEPC; @@ -2497,10 +2494,6 @@ db_print_unpflags(int unp_flags) db_printf("%sUNP_HAVEPC", comma ? ", " : ""); comma = 1; } - if (unp_flags & UNP_HAVEPCCACHED) { - db_printf("%sUNP_HAVEPCCACHED", comma ? ", " : ""); - comma = 1; - } if (unp_flags & UNP_WANTCRED) { db_printf("%sUNP_WANTCRED", comma ? ", " : ""); comma = 1; |