]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
It's in lib/util so no rad_assert
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 27 Jan 2019 08:45:56 +0000 (15:45 +0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 27 Jan 2019 08:45:56 +0000 (15:45 +0700)
src/lib/util/dict.c

index 12d9d4a71e71ee72c6d3dca1851a8e2e4c4aa9d6..c78885567cd18aedf28329609c4f1c6948ed0fa9 100644 (file)
@@ -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;
 }