From 31f8a355e2fdb6b2cd41aad02c25f0d9cc82846a Mon Sep 17 00:00:00 2001 From: des Date: Wed, 30 Apr 2003 00:49:42 +0000 Subject: Make sure rhostip is always initialized. PR: bin/51508 Submitted by: Peter Grimshaw --- lib/libpam/modules/pam_unix/pam_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); -- cgit v1.1