From: Arran Cudbard-Bell Date: Fri, 8 Mar 2019 10:16:37 +0000 (+0800) Subject: Return 0 if internal dict not loaded in fr_dict_attr_by_name_substr X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62a8efda9408faee16cd0b21c55aee65e4adf4e4;p=thirdparty%2Ffreeradius-server.git Return 0 if internal dict not loaded in fr_dict_attr_by_name_substr --- diff --git a/src/lib/util/dict.c b/src/lib/util/dict.c index ca6d362f7d4..18e3c6e0d87 100644 --- a/src/lib/util/dict.c +++ b/src/lib/util/dict.c @@ -3151,7 +3151,7 @@ ssize_t fr_dict_attr_by_name_substr(fr_dict_attr_err_t *err, fr_dict_attr_t cons *out = NULL; - INTERNAL_IF_NULL(dict, NULL); + INTERNAL_IF_NULL(dict, 0); if (!*name) { fr_strerror_printf("Zero length attribute name");