In asn1_decode_pa_for_user(), ensure that user member is allocated
authorLuke Howard <lukeh@padl.com>
Mon, 26 Jan 2009 22:50:02 +0000 (22:50 +0000)
committerLuke Howard <lukeh@padl.com>
Mon, 26 Jan 2009 22:50:02 +0000 (22:50 +0000)
before assigning a value to it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21805 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/asn1_k_decode.c

index 035aff17eaec7c4f4eb96c0c3b1b5e5be0d0fe5a..cc3168c005394790ec4395df1a2a71f131cdea56 100644 (file)
@@ -1208,6 +1208,7 @@ asn1_error_code asn1_decode_pa_for_user(asn1buf *buf, krb5_pa_for_user *val)
 {
     setup();
     { begin_structure();
+       alloc_field(val->user, krb5_principal_data);
         get_field(val->user,0,asn1_decode_principal_name);
         get_field(val->user,1,asn1_decode_realm);
         get_field(val->cksum,2,asn1_decode_checksum);