diff --git a/lib/pam_get_data.c b/lib/pam_get_data.c index 21ace5a..ae947a5 100644 --- a/lib/pam_get_data.c +++ b/lib/pam_get_data.c @@ -84,6 +84,7 @@ pam_get_data(const pam_handle_t *pamh, * context specified by the =pamh argument. * A pointer to the object is stored in the location pointed to by the * =data argument. + * If =pam_get_data fails, the =data argument is untouched. * * This function and its counterpart =pam_set_data are useful for managing * data that are meaningful only to a particular service module. diff --git a/lib/pam_get_item.c b/lib/pam_get_item.c index 7ee71b9..939e29c 100644 --- a/lib/pam_get_item.c +++ b/lib/pam_get_item.c @@ -108,10 +108,12 @@ pam_get_item(const pam_handle_t *pamh, /** * The =pam_get_item function stores a pointer to the item specified by - * the =item_type argument in the location specified by the =item + * the =item_type argument in the location pointed to by the =item * argument. * The item is retrieved from the PAM context specified by the =pamh * argument. + * If =pam_get_item fails, the =item argument is untouched. + * * The following item types are recognized: * * =PAM_SERVICE: