From: Alan T. DeKok Date: Mon, 5 Oct 2009 15:32:39 +0000 (+0200) Subject: Check for undefined types, too X-Git-Tag: release_2_1_8~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24327fcd488954133143eeb11d15e4c0dda7b661;p=thirdparty%2Ffreeradius-server.git Check for undefined types, too --- diff --git a/src/lib/radius.c b/src/lib/radius.c index c2aea3d7af4..3386d26a51f 100644 --- a/src/lib/radius.c +++ b/src/lib/radius.c @@ -2527,7 +2527,7 @@ static VALUE_PAIR *rad_continuation2vp(const RADIUS_PACKET *packet, * Note that we don't check "flag" here. The calling * code ensures that */ - if (da->type != PW_TYPE_TLV) { + if (!da || (da->type != PW_TYPE_TLV)) { not_well_formed: if (tlv_data == data) { /* true if we had 'goto' */ tlv_data = malloc(tlv_length);