]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Return 0 if internal dict not loaded in fr_dict_attr_by_name_substr
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 8 Mar 2019 10:16:37 +0000 (18:16 +0800)
committerGitHub <noreply@github.com>
Fri, 8 Mar 2019 10:16:37 +0000 (18:16 +0800)
src/lib/util/dict.c

index ca6d362f7d48b80d2e23bc5307b64e1e42c4865c..18e3c6e0d875dec84e91514b80196be888afadda 100644 (file)
@@ -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");