]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
result may now be NULL
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 22 Jun 2015 01:04:47 +0000 (21:04 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 22 Jun 2015 01:04:47 +0000 (21:04 -0400)
src/modules/rlm_ldap/ldap.c

index e32a2ad1c7c80ef4a8c742e0cafccb0f7460fc15..54b211f4d3f2f897a1aef9d12d8d99c645063579 100644 (file)
@@ -477,7 +477,7 @@ ldap_rcode_t rlm_ldap_result(rlm_ldap_t const *inst, ldap_handle_t const *conn,
        *error = NULL;
 
        if (extra) *extra = NULL;
-       *result = NULL;
+       if (result) *result = NULL;
 
        /*
         *      We always need the result, but our caller may not