Check for undefined types, too
authorAlan T. DeKok <aland@freeradius.org>
Mon, 5 Oct 2009 15:32:39 +0000 (17:32 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 5 Oct 2009 15:33:20 +0000 (17:33 +0200)
src/lib/radius.c

index 9ef943d..326ed52 100644 (file)
@@ -2583,7 +2583,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);