From 4e5fef74527a5250906ef1531671fdcc68513d0c Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Mon, 26 Jan 2009 22:50:02 +0000 Subject: [PATCH] In asn1_decode_pa_for_user(), ensure that user member is allocated 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/krb5/asn.1/asn1_k_decode.c b/src/lib/krb5/asn.1/asn1_k_decode.c index 035aff17e..cc3168c00 100644 --- a/src/lib/krb5/asn.1/asn1_k_decode.c +++ b/src/lib/krb5/asn.1/asn1_k_decode.c @@ -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); -- 2.26.2