Make sure rhostip is always initialized.
PR: bin/51508 Submitted by: Peter Grimshaw <peter@tesseract.demon.co.uk>
This commit is contained in:
parent
ccd703cfe4
commit
8f3031025b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user