Check that conv and conv->conv are non-null (fixes cron segfault)

This commit is contained in:
David Bartley 2007-10-13 00:02:41 -04:00
parent f0a4d22670
commit a3ad4d5a86
2 changed files with 8 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
libpam-csc (1.4) stable testing; urgency=low
* Check that conv and conv->conv are non-null (fixes cron segfault)
-- David Bartley <dtbartle@csclub.uwaterloo.ca> Sun, 14 Oct 2007 01:59:54 -0400
libpam-csc (1.3) stable testing; urgency=low
* Added allowed usernames check

View File

@ -144,6 +144,8 @@ int pam_csc_print_message(pam_handle_t* pamh, char* msg, int style)
/* output message */
WARN_PAM( pam_get_item(pamh, PAM_CONV, (const void**)&conv) )
if(!conv || !conv->conv)
goto cleanup;
messages[0] = &message;
message.msg_style = style;
message.msg = msg;