]> andersk Git - openssh.git/blobdiff - auth-pam.c
- (stevesk) [auth-pam.[ch] session.c] pam_getenvlist() must be
[openssh.git] / auth-pam.c
index e6bd851ceb554d1aa0756b62706e6a58171e3042..1d58b20785b0487b8fd1d2832baf7c8aa0911c21 100644 (file)
@@ -421,6 +421,16 @@ char **fetch_pam_environment(void)
 #endif /* HAVE_PAM_GETENVLIST */
 }
 
+void free_pam_environment(char **env)
+{
+       int i;
+
+       if (env != NULL) {
+               for (i = 0; env[i] != NULL; i++)
+                       xfree(env[i]);
+       }
+}
+
 /* Print any messages that have been generated during authentication */
 /* or account checking to stderr */
 void print_pam_messages(void)
This page took 0.032502 seconds and 4 git commands to generate.