diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2001-09-10 11:28:07 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2001-09-10 11:28:07 +0000 |
commit | bf61e266962ca1823db8cad0e512ca69a3480a0c (patch) | |
tree | fd84e8d4d01cdc0f4ba330211093170c75b99172 /sys/nfs | |
parent | 746b3df68f1f8030b49d60c080ab92fac77c270f (diff) | |
download | src-bf61e266962ca1823db8cad0e512ca69a3480a0c.tar.gz src-bf61e266962ca1823db8cad0e512ca69a3480a0c.zip |
Fix some signed/unsigned integer confusion, and add bounds checking of
arguments to some functions.
Obtained from: NetBSD
Reviewed by: peter
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=83291
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfs/nfs.h b/sys/nfs/nfs.h index 2b0f664232cf..44d04b96270f 100644 --- a/sys/nfs/nfs.h +++ b/sys/nfs/nfs.h @@ -198,9 +198,9 @@ struct nfsd_srvargs { uid_t nsd_uid; /* Effective uid mapped to cred */ u_int32_t nsd_haddr; /* Ip address of client */ struct xucred nsd_cr; /* Cred. uid maps to */ - int nsd_authlen; /* Length of auth string (ret) */ + u_int nsd_authlen; /* Length of auth string (ret) */ u_char *nsd_authstr; /* Auth string (ret) */ - int nsd_verflen; /* and the verfier */ + u_int nsd_verflen; /* and the verfier */ u_char *nsd_verfstr; struct timeval nsd_timestamp; /* timestamp from verifier */ u_int32_t nsd_ttl; /* credential ttl (sec) */ @@ -211,9 +211,9 @@ struct nfsd_cargs { char *ncd_dirp; /* Mount dir path */ uid_t ncd_authuid; /* Effective uid */ int ncd_authtype; /* Type of authenticator */ - int ncd_authlen; /* Length of authenticator string */ + u_int ncd_authlen; /* Length of authenticator string */ u_char *ncd_authstr; /* Authenticator string */ - int ncd_verflen; /* and the verifier */ + u_int ncd_verflen; /* and the verifier */ u_char *ncd_verfstr; NFSKERBKEY_T ncd_key; /* Session key */ }; |