svn commit: r363439 - head/usr.sbin/mountd
Brooks Davis
brooks at FreeBSD.org
Wed Jul 22 23:39:59 UTC 2020
Author: brooks
Date: Wed Jul 22 23:39:58 2020
New Revision: 363439
URL: https://svnweb.freebsd.org/changeset/base/363439
Log:
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
Modified:
head/usr.sbin/mountd/mountd.c
Modified: head/usr.sbin/mountd/mountd.c
==============================================================================
--- head/usr.sbin/mountd/mountd.c Wed Jul 22 23:35:41 2020 (r363438)
+++ head/usr.sbin/mountd/mountd.c Wed Jul 22 23:39:58 2020 (r363439)
@@ -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;
More information about the svn-src-all
mailing list