pamh allowed to be NULL?

Thorsten Kukuk kukuk at suse.de
Thu Jan 5 13:00:34 UTC 2006


Hi,

the LSB PAM test suite expects that pamh can be NULL and the function
should not crash. With the current optimizations and usage of nonnull
attribute, it seems this is not always true anymore. I know it is
debateable if a library should crash in such cases or not and that
everybody has another opinion.

My question is: Is there any documentation which tells us how
a PAM function should behave if the pamh argument is NULL? I cannot
find this, even the LSB spec itself says nothing about this.

  Thorsten
-- 
Thorsten Kukuk         http://www.suse.de/~kukuk/      kukuk at suse.de
SUSE LINUX Products GmbH       Maxfeldstr. 5       D-90409 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B




More information about the Pam-list mailing list