]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
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>
Tue, 20 Oct 2009 22:00:32 +0000 (00:00 +0200)
src/lib/radius.c

index c2aea3d7af4e18afe3612f1eecea7028860dc716..3386d26a51f477b1764d99d9690dc2ef8a05806a 100644 (file)
@@ -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);