svn commit: r363626 - stable/11/usr.sbin/mountd
Brooks Davis
brooks at FreeBSD.org
Mon Jul 27 23:19:47 UTC 2020
Author: brooks
Date: Mon Jul 27 23:19:46 2020
New Revision: 363626
URL: https://svnweb.freebsd.org/changeset/base/363626
Log:
MFC r363439:
Correct a type-mismatch between xdr_long and the variable "bad".
Way back in r28911 (August 1997, CVS rev 1.22) we imported a NetBSD
information leak fix via OpenBSD. Unfortunatly we failed to track the
followup commit that fixed the type of the error code. Apply the change
from int to long now.
Reviewed by: emaste
Reported by: CHERI
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D25779
Modified:
stable/11/usr.sbin/mountd/mountd.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/mountd/mountd.c
==============================================================================
--- stable/11/usr.sbin/mountd/mountd.c Mon Jul 27 23:18:14 2020 (r363625)
+++ stable/11/usr.sbin/mountd/mountd.c Mon Jul 27 23:19:46 2020 (r363626)
@@ -1085,7 +1085,8 @@ mntsrv(struct svc_req *rqstp, SVCXPRT *transp)
struct sockaddr *saddr;
u_short sport;
char rpcpath[MNTPATHLEN + 1], dirpath[MAXPATHLEN];
- int bad = 0, defset, hostset;
+ int defset, hostset;
+ long bad = 0;
sigset_t sighup_mask;
int numsecflavors, *secflavorsp;
More information about the svn-src-stable-11
mailing list