]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
We don't always have extensions
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 15 Oct 2020 14:51:01 +0000 (09:51 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 15 Oct 2020 14:51:01 +0000 (09:51 -0500)
src/lib/util/dict_ext.c

index 6d8c2dec40ed0cc747dfa6eb35364de08cbbd849..7ead33d68b40f4c7fb65a6fce25d311bfc183951 100644 (file)
@@ -290,6 +290,7 @@ void *dict_attr_ext_copy(TALLOC_CTX *ctx,
 
        ext_len = dict_attr_ext_len(da_in, ext);
        ext_ptr = fr_dict_attr_ext(da_in, ext);
+       if (!ext_ptr) return NULL;
 
        /*
         *      Use the special copy function.