From: Arran Cudbard-Bell Date: Thu, 15 Oct 2020 14:51:01 +0000 (-0500) Subject: We don't always have extensions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aef23501d64cccf39755a677e6079e38c5b6097;p=thirdparty%2Ffreeradius-server.git We don't always have extensions --- diff --git a/src/lib/util/dict_ext.c b/src/lib/util/dict_ext.c index 6d8c2dec40e..7ead33d68b4 100644 --- a/src/lib/util/dict_ext.c +++ b/src/lib/util/dict_ext.c @@ -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.