diff options
author | des <des@FreeBSD.org> | 2002-04-01 12:20:48 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-04-01 12:20:48 +0000 |
commit | 79a0a0ceefeb01959491c0bc8fc6892aecb618dc (patch) | |
tree | 300bb4e62603f82611e6e86cc2a0bffedd37ec7a /contrib | |
parent | 0ea0f91492be5169a15d8bfb3184fba7a1a7006e (diff) | |
parent | 191bd7d163c8bb0d405b52eb41d1d91baaca3d1e (diff) | |
download | FreeBSD-src-79a0a0ceefeb01959491c0bc8fc6892aecb618dc.zip FreeBSD-src-79a0a0ceefeb01959491c0bc8fc6892aecb618dc.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r93526,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/openpam/lib/pam_set_data.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/openpam/lib/pam_set_data.c b/contrib/openpam/lib/pam_set_data.c index 4ff3617..253a4bf 100644 --- a/contrib/openpam/lib/pam_set_data.c +++ b/contrib/openpam/lib/pam_set_data.c @@ -31,7 +31,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/openpam/lib/pam_set_data.c#8 $ + * $P4: //depot/projects/openpam/lib/pam_set_data.c#9 $ */ #include <stdlib.h> @@ -74,11 +74,13 @@ pam_set_data(pam_handle_t *pamh, if ((dp = malloc(sizeof *dp)) == NULL) return (PAM_BUF_ERR); if ((dp->name = strdup(module_data_name)) == NULL) { - free(data); + free(dp); return (PAM_BUF_ERR); } + dp->data = data; + dp->cleanup = cleanup; dp->next = pamh->module_data; - pamh->module_data = data; + pamh->module_data = dp; return (PAM_SUCCESS); } |