diff options
author | des <des@FreeBSD.org> | 2003-04-30 00:49:42 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-04-30 00:49:42 +0000 |
commit | 31f8a355e2fdb6b2cd41aad02c25f0d9cc82846a (patch) | |
tree | 79aeffa4aa6b7171d8f96368154e24e099acc8d7 /lib/libpam/modules/pam_unix/pam_unix.c | |
parent | 4f251ebb977bb8290036b334a92ab0ad273a972d (diff) | |
download | FreeBSD-src-31f8a355e2fdb6b2cd41aad02c25f0d9cc82846a.zip FreeBSD-src-31f8a355e2fdb6b2cd41aad02c25f0d9cc82846a.tar.gz |
Make sure rhostip is always initialized.
PR: bin/51508
Submitted by: Peter Grimshaw <peter@tesseract.demon.co.uk>
Diffstat (limited to 'lib/libpam/modules/pam_unix/pam_unix.c')
-rw-r--r-- | lib/libpam/modules/pam_unix/pam_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c index 28b9c17..56cdd1a 100644 --- a/lib/libpam/modules/pam_unix/pam_unix.c +++ b/lib/libpam/modules/pam_unix/pam_unix.c @@ -170,7 +170,7 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags __unused, time_t warntime; int retval; const char *rhost, *tty, *user; - char rhostip[MAXHOSTNAMELEN]; + char rhostip[MAXHOSTNAMELEN] = ""; pam_std_option(&options, other_options, argc, argv); |