aboutsummaryrefslogtreecommitdiff
path: root/nis/yp_xdr.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2012-10-01 15:32:39 -0600
committerJeff Law <law@redhat.com>2012-10-01 15:32:39 -0600
commit4d57bf6393191446d0e43a82af49f0ebbb7b2788 (patch)
tree69e154e076a6b5639e32a43c23a6d11b121b0b28 /nis/yp_xdr.c
parent497a03d6f1b8baaba981e80041e96cf31b82c8fe (diff)
downloadglibc-4d57bf6393191446d0e43a82af49f0ebbb7b2788.tar
glibc-4d57bf6393191446d0e43a82af49f0ebbb7b2788.tar.gz
glibc-4d57bf6393191446d0e43a82af49f0ebbb7b2788.tar.bz2
glibc-4d57bf6393191446d0e43a82af49f0ebbb7b2788.zip
2012-10-01 Patsy Franklin <pfrankli@redhat.com>
Honza Horak <hhorak@redhat.com> * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize. (xdr_mapname): Use YPMAXMAP as maxsize. (xdr_peername): Use YPMAXPEER as maxsize. (xdr_keydat): Use YPAXRECORD as maxsize. (xdr_valdat): Use YPMAXRECORD as maxsize.
Diffstat (limited to 'nis/yp_xdr.c')
-rw-r--r--nis/yp_xdr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nis/yp_xdr.c b/nis/yp_xdr.c
index 76e0f2f216..418850643d 100644
--- a/nis/yp_xdr.c
+++ b/nis/yp_xdr.c
@@ -49,21 +49,21 @@ libnsl_hidden_def (xdr_ypxfrstat)
bool_t
xdr_domainname (XDR *xdrs, domainname *objp)
{
- return xdr_string (xdrs, objp, ~0);
+ return xdr_string (xdrs, objp, YPMAXDOMAIN);
}
libnsl_hidden_def (xdr_domainname)
bool_t
xdr_mapname (XDR *xdrs, mapname *objp)
{
- return xdr_string (xdrs, objp, ~0);
+ return xdr_string (xdrs, objp, YPMAXMAP);
}
libnsl_hidden_def (xdr_mapname)
bool_t
xdr_peername (XDR *xdrs, peername *objp)
{
- return xdr_string (xdrs, objp, ~0);
+ return xdr_string (xdrs, objp, YPMAXPEER);
}
libnsl_hidden_def (xdr_peername)
@@ -71,7 +71,7 @@ bool_t
xdr_keydat (XDR *xdrs, keydat *objp)
{
return xdr_bytes (xdrs, (char **) &objp->keydat_val,
- (u_int *) &objp->keydat_len, ~0);
+ (u_int *) &objp->keydat_len, YPMAXRECORD);
}
libnsl_hidden_def (xdr_keydat)
@@ -79,7 +79,7 @@ bool_t
xdr_valdat (XDR *xdrs, valdat *objp)
{
return xdr_bytes (xdrs, (char **) &objp->valdat_val,
- (u_int *) &objp->valdat_len, ~0);
+ (u_int *) &objp->valdat_len, YPMAXRECORD);
}
libnsl_hidden_def (xdr_valdat)