aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2020-07-22 23:39:58 +0000
committerBrooks Davis <brooks@FreeBSD.org>2020-07-22 23:39:58 +0000
commite9b21d432bac9f7c95bd282cad6849ce28428aee (patch)
treed2169a744ddf27197fa6f07e462740e15c5f1916
parent5a01eca698113fff3e75265e6d59023af47921d7 (diff)
downloadsrc-e9b21d432bac9f7c95bd282cad6849ce28428aee.tar.gz
src-e9b21d432bac9f7c95bd282cad6849ce28428aee.zip
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 Found by: CHERI Obtained from: CheriBSD MFC after: 3 days Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D25779
Notes
Notes: svn path=/head/; revision=363439
-rw-r--r--usr.sbin/mountd/mountd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index 00e554802f55..55ae98d413db 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -1091,7 +1091,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;