]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
dict_attr_free should check pointer value
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 19 Feb 2013 00:42:01 +0000 (19:42 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 19 Feb 2013 00:44:13 +0000 (19:44 -0500)
src/lib/dict.c

index cc1c7032fa5ff2bf60fcda9a8662ac116e28fbd6..55adb769196144313dbce23f77f6a7b81a5ef95d 100644 (file)
@@ -2449,6 +2449,8 @@ void dict_attr_free(DICT_ATTR const **da)
 {
        DICT_ATTR **tmp;
        
+       if (!da || !*da) return;
+       
        /* Don't free real DAs */
        if (!(*da)->flags.is_unknown) {
                return;