Skip to content

Commit 70f5de7

Browse files
committed
Pacify Coverity (CID #1648478)
It doesn't understand about required xlat args
1 parent 03f5db1 commit 70f5de7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/modules/rlm_ldap/rlm_ldap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,10 @@ static xlat_action_t ldap_xlat_uri_attr_option(TALLOC_CTX *ctx, fr_dcursor_t *ou
589589

590590
XLAT_ARGS(in, &uri, &option_vb);
591591

592+
#ifdef STATIC_ANALYZER
593+
if (!option_vb) return XLAT_ACTION_FAIL;
594+
#endif
595+
592596
if (option_vb->vb_length < 1) {
593597
RERROR("LDAP attriubte option must not be blank");
594598
return XLAT_ACTION_FAIL;

0 commit comments

Comments
 (0)