From: Arran Cudbard-Bell Date: Sun, 27 Jan 2019 08:45:56 +0000 (+0700) Subject: It's in lib/util so no rad_assert X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a52007b5bcdfd1f5f26100fdb163b909bb6593e7;p=thirdparty%2Ffreeradius-server.git It's in lib/util so no rad_assert --- diff --git a/src/lib/util/dict.c b/src/lib/util/dict.c index 12d9d4a71e7..c78885567cd 100644 --- a/src/lib/util/dict.c +++ b/src/lib/util/dict.c @@ -3328,7 +3328,14 @@ again: p += slen; - rad_assert(*out); /* If we're returning a success code indication, ensure we populated out */ + /* + * If we're returning a success code indication, + * ensure we populated out + */ + if (!fr_cond_assert(*out)) { + if (err) *err = FR_DICT_ATTR_EINVAL; + return 0; + } return p - name; }