Fix data handling in rd_req_decoded_opt
authorGreg Hudson <ghudson@mit.edu>
Sat, 31 Mar 2012 00:38:20 +0000 (00:38 +0000)
committerGreg Hudson <ghudson@mit.edu>
Sat, 31 Mar 2012 00:38:20 +0000 (00:38 +0000)
commitc49954a13ec5ebfecc20b25f68649983522adb03
tree998cb1bc55110c7a1b141c9ca3fa6badd8deb40c
parent4ce0974b4d5c37b22ceedb5aa7115eedcfc486ef
Fix data handling in rd_req_decoded_opt

We shouldn't peer at trans->tr_contents.data[0] if
trans->tr_contents.length is 0, even if the data field is non-null.
Harmless as long as the ASN.1 decoder uses null data fields for empty
krb5_data values, but still wrong.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25797 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/krb/rd_req_dec.c