From: Arran Cudbard-Bell Date: Thu, 17 Nov 2022 23:54:51 +0000 (-0600) Subject: srv_cred itself is NULL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7786e530af5edc3e90f2bd1b85f98c22e47be321;p=thirdparty%2Ffreeradius-server.git srv_cred itself is NULL --- diff --git a/src/lib/ldap/sasl.c b/src/lib/ldap/sasl.c index 16df5afadd4..336046b345a 100644 --- a/src/lib/ldap/sasl.c +++ b/src/lib/ldap/sasl.c @@ -177,9 +177,11 @@ static void _ldap_sasl_bind_io_read(fr_event_list_t *el, int fd, UNUSED int flag * Observed as NULL when doing EXTERNAL * authentication. */ - if (srv_cred->bv_val) DEBUG3("SASL response : %pV", - fr_box_strvalue_len(srv_cred->bv_val, srv_cred->bv_len)); - ber_bvfree(srv_cred); + if (srv_cred) { + DEBUG3("SASL response : %pV", + fr_box_strvalue_len(srv_cred->bv_val, srv_cred->bv_len)); + ber_bvfree(srv_cred); + } /* * If we need to continue, wait until the