From 32f63996385baae4f02d962bef3a674dddb9bbf6 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Fri, 13 Jan 2006 20:59:48 +0000 Subject: Relevant BUGIDs: Purpose of commit: bugfix Commit summary: --------------- 2006-01-13 Thorsten Kukuk * libpam_misc/misc_conv.c (misc_conv): Fix strict aliasing error. * modules/pam_umask/pam_umask.c (search_key): Don't ignore EOF/error return value from fgets(). * configure.in: Check for getline and getdelim --- libpam_misc/misc_conv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libpam_misc/misc_conv.c') diff --git a/libpam_misc/misc_conv.c b/libpam_misc/misc_conv.c index e5095d91..8db24d74 100644 --- a/libpam_misc/misc_conv.c +++ b/libpam_misc/misc_conv.c @@ -1,6 +1,4 @@ /* - * $Id$ - * * A generic conversation function for text based applications * * Written by Andrew Morgan @@ -377,9 +375,11 @@ failed_conversation: free(reply[count].resp); break; case PAM_BINARY_PROMPT: - pam_binary_handler_free(appdata_ptr, - (pamc_bp_t *) &reply[count].resp); + { + void *bt_ptr = reply[count].resp; + pam_binary_handler_free(appdata_ptr, bt_ptr); break; + } case PAM_ERROR_MSG: case PAM_TEXT_INFO: /* should not actually be able to get here... */ -- cgit v1.2.3