|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Sudarshan Soma (sudarshan12s
gmail.com)
Date: Fri Nov 28 2008 - 00:25:17 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
_______________________________________________
Pam-list mailing list
Pam-list
redhat.com
https://www.redhat.com/mailman/listinfo/pam-list
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]