]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Minor formatting fixes
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 23 Jun 2015 02:38:59 +0000 (22:38 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 23 Jun 2015 02:41:04 +0000 (22:41 -0400)
src/modules/rlm_ldap/ldap.c
src/modules/rlm_ldap/ldap.h
src/modules/rlm_ldap/rlm_ldap.c
src/modules/rlm_ldap/sasl.c

index ee6773e34aa53f1c949c98e0af6afba7a9846830..8343cfaeb20dd1005245b2109e0aee679c1d0f73 100644 (file)
@@ -945,9 +945,7 @@ finish:
         *      it to where our caller said.
         */
        if (!result) {
-               if (our_result) {
-                       ldap_msgfree(our_result);
-               }
+               if (our_result) ldap_msgfree(our_result);
        } else {
                *result = our_result;
        }
@@ -1015,7 +1013,6 @@ ldap_rcode_t rlm_ldap_modify(rlm_ldap_t const *inst, REQUEST *request, ldap_hand
                                RWDEBUG("Modify failed: %s. Got new socket, retrying...", error);
 
                                talloc_free(extra); /* don't leak debug info */
-
                                continue;
                        }
 
index d77a19dda4ed29d0cb3367d55b129a93a8411c22..bf0eaa77c144a64055ce319bad4a44dc6908f058 100644 (file)
@@ -143,7 +143,7 @@ typedef struct ldap_instance {
        /*
         *      RADIUS attribute to LDAP attribute maps
         */
-       vp_map_t *user_map;                     //!< Attribute map applied to users and profiles.
+       vp_map_t        *user_map;                      //!< Attribute map applied to users and profiles.
 
        /*
         *      User object attributes and filters
index bee0a83f9c7046575ad4c7acd2b197c7e901b8ae..7a49eb43eed62af5d8aff22f050c60055d72f75a 100644 (file)
@@ -224,7 +224,6 @@ static const CONF_PARSER module_config[] = {
        { "identity", FR_CONF_OFFSET(PW_TYPE_STRING, rlm_ldap_t, admin_identity), NULL },
        { "password", FR_CONF_OFFSET(PW_TYPE_STRING | PW_TYPE_SECRET, rlm_ldap_t, admin_password), NULL },
 
-       /* Should be deprecated */
        { "sasl", FR_CONF_OFFSET(PW_TYPE_SUBSECTION, rlm_ldap_t, admin_sasl), (void const *) sasl_mech_static },
 
        { "valuepair_attribute", FR_CONF_OFFSET(PW_TYPE_STRING, rlm_ldap_t, valuepair_attr), NULL },
index 00a3ded5f6b111afffc6f142a66061c5ffe42f8f..d71e5b102e1aef94be0e78f9f44cfae477ec58de 100644 (file)
@@ -113,8 +113,8 @@ ldap_rcode_t rlm_ldap_sasl_interactive(rlm_ldap_t const *inst, REQUEST *request,
        rlm_ldap_sasl_ctx_t     sasl_ctx;               /* SASL defaults */
 
        /* rlm_ldap_result may not be called */
-       *error = NULL;
-       *extra = NULL;
+       if (error) *error = NULL;
+       if (extra) *extra = NULL;
 
        sasl_ctx.inst = inst;
        sasl_ctx.request = request;