]> andersk Git - gssapi-openssh.git/blobdiff - openssh/misc.c
enable PAM user switching
[gssapi-openssh.git] / openssh / misc.c
index 83efdedb0a653fcbd00e5827565f3754737a5b8e..c447d234cc3f83a7e360fb5ca280a7b1dde91799 100644 (file)
@@ -237,6 +237,20 @@ pwcopy(struct passwd *pw)
        return copy;
 }
 
+void
+pwfree(struct passwd *pw)
+{
+       xfree(pw->pw_name);
+       xfree(pw->pw_passwd);
+       xfree(pw->pw_gecos);
+#ifdef HAVE_PW_CLASS_IN_PASSWD
+       xfree(pw->pw_class);
+#endif
+       xfree(pw->pw_dir);
+       xfree(pw->pw_shell);
+       xfree(pw);
+}
+
 /*
  * Convert ASCII string to TCP/IP port number.
  * Port must be >=0 and <=65535.
This page took 0.300214 seconds and 4 git commands to generate.