[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
pam_getenv
- From: "Sudarshan Soma" <sudarshan12s gmail com>
- To: pam-list redhat com
- Subject: pam_getenv
- Date: Fri, 28 Nov 2008 11:55:17 +0530
Hi All, Iam using pam_getenv in my PAM application. Can anyone please
let me know should i free the memory pointed to const char in my
application or its take care by libpam.
I am bit confused. As per Documentation, it says the application
should free it. Is that true. Please advice.
buf = pam_getenv(pamh,"PRIMARY");
if(buf != NULL && buf[0] != '\0' ) {
if (strcmp(buf, "TRUE") == 0) {
printf("success\n ");
}
}
if (buf) {
//free(buf); // is this reqd???
}
Regards,
Pavan
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]