From: Greg Hudson Date: Mon, 26 Jul 2010 18:19:49 +0000 (+0000) Subject: Use xdr_int32 instead of xdr_u_int in xdr_krb5_enctype(), since X-Git-Tag: krb5-1.9-beta1~135 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2da6eedaa6d1a1ca074f8fb5b12b8b7ac15be044;p=krb5.git Use xdr_int32 instead of xdr_u_int in xdr_krb5_enctype(), since enctypes are signed 32-bit values. Wire representation does not change. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24211 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kadm5/kadm_rpc_xdr.c b/src/lib/kadm5/kadm_rpc_xdr.c index 36724eab3..5fb67ebb1 100644 --- a/src/lib/kadm5/kadm_rpc_xdr.c +++ b/src/lib/kadm5/kadm_rpc_xdr.c @@ -1021,7 +1021,7 @@ xdr_krb5_enctype(XDR *xdrs, krb5_enctype *objp) * is safe. */ - if (!xdr_u_int(xdrs, (unsigned int *) objp)) + if (!xdr_int32(xdrs, (int32_t *) objp)) return (FALSE); return (TRUE); }