diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2008-06-10 23:15:33 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2008-06-10 23:15:33 +0000 |
commit | 49ea325f4db083565e3d34e6c9c0b909cb5b8f92 (patch) | |
tree | 98598325fc466ed5d288408bf2ad54897b8c587a /sys | |
parent | 2b8c4fa9a050f7a8bb10558708f84159b1764d10 (diff) |
Remove redundant code that only leaked an mbuf.
ok krw@, deraadt@, thib@
earlier commit for some reason did not go through
prodded by nfs buddy
Diffstat (limited to 'sys')
-rw-r--r-- | sys/nfs/krpc_subr.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/nfs/krpc_subr.c b/sys/nfs/krpc_subr.c index 363a837d985..38d7f28bb8d 100644 --- a/sys/nfs/krpc_subr.c +++ b/sys/nfs/krpc_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: krpc_subr.c,v 1.16 2008/06/09 22:47:42 djm Exp $ */ +/* $OpenBSD: krpc_subr.c,v 1.17 2008/06/10 23:15:32 blambert Exp $ */ /* $NetBSD: krpc_subr.c,v 1.12.4.1 1996/06/07 00:52:26 cgd Exp $ */ /* @@ -266,12 +266,6 @@ krpc_call(sa, prog, vers, func, data, from_p, retries) * because some NFS servers refuse requests from * non-reserved (non-privileged) ports. */ - m = m_getclr(M_WAIT, MT_SONAME); - sin = mtod(m, struct sockaddr_in *); - sin->sin_len = m->m_len = sizeof(*sin); - sin->sin_family = AF_INET; - sin->sin_addr.s_addr = INADDR_ANY; - MGET(mopt, M_WAIT, MT_SOOPTS); mopt->m_len = sizeof(int); ip = mtod(mopt, int *); |