Changeset 98 in openpam for trunk


Ignore:
Timestamp:
Apr 1, 2002, 2:13:56 PM (18 years ago)
Author:
Dag-Erling Smørgrav
Message:

Fix braino that arose from confusion between data and dp. This
unbreaks the pam_ldap module.

Based on a patch by Joe Marcus Clarke <marcus@…>.

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/pam_set_data.c

    r93 r98  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/pam_set_data.c#8 $
     34 * $P4: //depot/projects/openpam/lib/pam_set_data.c#9 $
    3535 */
    3636
     
    7575                return (PAM_BUF_ERR);
    7676        if ((dp->name = strdup(module_data_name)) == NULL) {
    77                 free(data);
     77                free(dp);
    7878                return (PAM_BUF_ERR);
    7979        }
     80        dp->data = data;
     81        dp->cleanup = cleanup;
    8082        dp->next = pamh->module_data;
    81         pamh->module_data = data;
     83        pamh->module_data = dp;
    8284        return (PAM_SUCCESS);
    8385}
Note: See TracChangeset for help on using the changeset viewer.