* string need to occur in the NULL ctx so we don't fragment
* any pool associated with it.
*/
- if (unlikely(in->secret && suppress_secrets)) {
+ if (unlikely(in && in->secret && suppress_secrets)) {
subst = talloc_typed_strdup(NULL, "<<< secret >>>");
} else if (in) {
PAIR_VERIFY(in);
- if (unlikely(in->data.secret && suppress_secrets)) {
+ if (unlikely(in && in->data.secret && suppress_secrets)) {
fr_pair_aprint_secure(NULL, &subst, NULL, in);
} else {
fr_pair_aprint(NULL, &subst, NULL, in);