diff options
author | kwc@citi.umich.edu <kwc@citi.umich.edu> | 2006-07-03 18:34:05 -0400 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-07-04 10:27:15 +1000 |
commit | 119c3e9aafe84c0f7c2846c46ad5e6f5eeece0da (patch) | |
tree | 79aeb1713ae63fe3fe521b8e6d032d33f598c500 /utils/gssd/write_bytes.h | |
parent | c3f05548d7b3d586e7eebbdde9339617e88530f3 (diff) | |
download | nfs-utils-119c3e9aafe84c0f7c2846c46ad5e6f5eeece0da.tar.gz nfs-utils-119c3e9aafe84c0f7c2846c46ad5e6f5eeece0da.tar.xz nfs-utils-119c3e9aafe84c0f7c2846c46ad5e6f5eeece0da.zip |
Fix problems with 64-bit big-endian machines
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Correct the definition of mech_used in the gss context to use gss_OID_desc.
This fixes problems on 64-bit machines when referencing the OID.
Also updates write_buffer function to use u_int rather than size_t when
doing calculations.
Diffstat (limited to 'utils/gssd/write_bytes.h')
-rw-r--r-- | utils/gssd/write_bytes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/gssd/write_bytes.h b/utils/gssd/write_bytes.h index f166148..8021cd8 100644 --- a/utils/gssd/write_bytes.h +++ b/utils/gssd/write_bytes.h @@ -56,7 +56,7 @@ write_buffer(char **p, char *end, gss_buffer_desc *arg) int len = (int)arg->length; /* make an int out of size_t */ if (WRITE_BYTES(p, end, len)) return -1; - if (*p + arg->length > end) + if (*p + len > end) return -1; memcpy(*p, arg->value, len); *p += len; |