From 8f3031025ba84422b32fb4353e4d229fc962a40a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Wed, 30 Apr 2003 00:49:42 +0000 Subject: [PATCH] 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(-) diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c index 28b9c17e10e..56cdd1a9f4b 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);