Changeset 60 in openpam
- Timestamp:
- Feb 13, 2002, 1:21:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/pam_getenvlist.c
r16 r60 41 41 42 42 #include "openpam_impl.h" 43 43 44 /* 44 45 * XSSO 4.2.1 … … 57 58 return (NULL); 58 59 59 if ((envlist = malloc(sizeof(char *) * (pamh->env_count + 1))) == NULL) 60 envlist = malloc(sizeof(char *) * (pamh->env_count + 1)); 61 if (envlist == NULL) { 62 openpam_log(PAM_LOG_ERROR, "%s", 63 pam_strerror(pamh, PAM_BUF_ERR)); 60 64 return (NULL); 65 } 61 66 for (i = 0; i < pamh->env_count; ++i) { 62 67 if ((envlist[i] = strdup(pamh->env[i])) == NULL) { … … 64 69 free(envlist[--i]); 65 70 free(envlist); 71 openpam_log(PAM_LOG_ERROR, "%s", 72 pam_strerror(pamh, PAM_BUF_ERR)); 66 73 return (NULL); 67 74 }
Note: See TracChangeset
for help on using the changeset viewer.