Query regd segmentation fault in pam_start

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

   I am new to PAM. I was just trying out with some test code using PAM
interfaces. This is something that I noticed in pam_start.

  If NULL is passed for either the service name or pam  handle in the
pam_start interface, it results in segmentation fault. When I went
through the code I found that memory is allocated for pam handle without
checking if it is NULL.

    if ((*pamh = calloc(1, sizeof(**pamh))) == NULL)


   But the parameters for user and service name are checked before
allocating memory. But I am not sure why it results in a segmentaion
fault when the service name is NULL.

Am I missing something ? Please help

Regards
Rohit



_______________________________________________

Pam-list@redhat.com
https://listman.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux