Skip to content

Commit

Permalink
No rad_assert in lib
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Nov 16, 2015
1 parent fcec0a4 commit b548cb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/dict.c
Expand Up @@ -3055,7 +3055,11 @@ fr_dict_attr_t *fr_dict_unknown_afrom_fields(TALLOC_CTX *ctx, fr_dict_attr_t con
da = (fr_dict_attr_t *)p;
talloc_set_type(da, fr_dict_attr_t);

rad_assert(parent); /* coverity */
if (!fr_assert(parent)) { /* coverity */
talloc_free(p);
return NULL;
}

if (fr_dict_unknown_from_fields(da, parent, vendor, attr) < 0) {
talloc_free(p);
fr_dict_attr_free(&new_parent);
Expand Down

0 comments on commit b548cb3

Please sign in to comment.