From: Ezra Peisach Date: Wed, 25 Jul 2001 19:03:35 +0000 (+0000) Subject: * adb_xdr.c (xdr_krb5_key_data): Use xdr_krb5_ui_2 instead of X-Git-Tag: krb5-1.3-alpha1~1168 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=92fb1fb8556bd63f4f66c14f835bc54933fd69dc;p=krb5.git * adb_xdr.c (xdr_krb5_key_data): Use xdr_krb5_ui_2 instead of xdr_krb5_int16 for key_data_length field. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13643 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kadm5/srv/ChangeLog b/src/lib/kadm5/srv/ChangeLog index 6dccccb21..5c1135b54 100644 --- a/src/lib/kadm5/srv/ChangeLog +++ b/src/lib/kadm5/srv/ChangeLog @@ -1,3 +1,8 @@ +2001-07-25 Ezra Peisach + + * adb_xdr.c (xdr_krb5_key_data): Use xdr_krb5_ui_2 instead of + xdr_krb5_int16 for key_data_length field. + 2001-07-06 Ezra Peisach * svr_iters.c: Declare kadm5_get_either static diff --git a/src/lib/kadm5/srv/adb_xdr.c b/src/lib/kadm5/srv/adb_xdr.c index b6ea89cfd..757cf92e5 100644 --- a/src/lib/kadm5/srv/adb_xdr.c +++ b/src/lib/kadm5/srv/adb_xdr.c @@ -30,9 +30,9 @@ xdr_krb5_key_data(XDR *xdrs, krb5_key_data *objp) return(FALSE); if (!xdr_krb5_int16(xdrs, &objp->key_data_type[1])) return(FALSE); - if (!xdr_krb5_int16(xdrs, &objp->key_data_length[0])) + if (!xdr_krb5_ui_2(xdrs, &objp->key_data_length[0])) return(FALSE); - if (!xdr_krb5_int16(xdrs, &objp->key_data_length[1])) + if (!xdr_krb5_ui_2(xdrs, &objp->key_data_length[1])) return(FALSE); tmp = (unsigned int) objp->key_data_length[0];