]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Pacify Coverity (CID #1648478)
authorNick Porter <nick@portercomputing.co.uk>
Mon, 9 Jun 2025 07:48:48 +0000 (08:48 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 9 Jun 2025 08:10:17 +0000 (09:10 +0100)
It doesn't understand about required xlat args

src/modules/rlm_ldap/rlm_ldap.c

index d039277f0ad0d173192913e5431745c8fb79e4a6..cde79800863dae427a73b3b270cdf7d7696c5d01 100644 (file)
@@ -589,6 +589,10 @@ static xlat_action_t ldap_xlat_uri_attr_option(TALLOC_CTX *ctx, fr_dcursor_t *ou
 
        XLAT_ARGS(in, &uri, &option_vb);
 
+#ifdef STATIC_ANALYZER
+       if (!option_vb) return XLAT_ACTION_FAIL;
+#endif
+
        if (option_vb->vb_length < 1) {
                RERROR("LDAP attriubte option must not be blank");
                return XLAT_ACTION_FAIL;