Date: Mon, 1 Apr 2002 04:13:56 -0800 (PST) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 8760 for review Message-ID: <200204011213.g31CDu214052@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=8760 Change 8760 by des@des.at.des.thinksec.com on 2002/04/01 04:13:56 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@marcuscom.com>. Sponsored by: DARPA, NAI Labs Affected files ... ... //depot/projects/openpam/lib/pam_set_data.c#9 edit Differences ... ==== //depot/projects/openpam/lib/pam_set_data.c#9 (text+ko) ==== @@ -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 @@ 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); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204011213.g31CDu214052>