Changeset 205 in openpam for trunk


Ignore:
Timestamp:
Feb 16, 2003, 12:09:51 PM (16 years ago)
Author:
Dag-Erling Smørgrav
Message:

Avoid a NULL pointer dereference if PAM_CONV is non-NULL but its
conv member is NULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/pam_vprompt.c

    r187 r205  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/pam_vprompt.c#8 $
     34 * $P4: //depot/projects/openpam/lib/pam_vprompt.c#9 $
    3535 */
    3636
     
    6767        if (r != PAM_SUCCESS)
    6868                RETURNC(r);
    69         if (conv == NULL) {
     69        if (conv == NULL || conv->conv == NULL) {
    7070                openpam_log(PAM_LOG_ERROR, "no conversation function");
    7171                RETURNC(PAM_SYSTEM_ERR);
Note: See TracChangeset for help on using the changeset viewer.