mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
fmt_info_messages: don't include ttyname if it is NULL
The NULL check was commented out for testing but should have been restored. Fixes a potential protocol error message from sudo_logsrvd. --HG-- branch : 1.9
This commit is contained in:
parent
ac830c558d
commit
ff5f68f2e2
@ -917,9 +917,9 @@ fmt_info_messages(struct client_closure *closure, struct eventlog *evlog,
|
||||
fill_str("submithost", evlog->submithost);
|
||||
/* TODO - submituid */
|
||||
fill_str("submituser", evlog->submituser);
|
||||
// if (evlog->ttyname != NULL) {
|
||||
if (evlog->ttyname != NULL) {
|
||||
fill_str("ttyname", evlog->ttyname);
|
||||
// }
|
||||
}
|
||||
|
||||
/* Free unused structs. */
|
||||
while (info_msgs_size > n)
|
||||
|
Loading…
x
Reference in New Issue
Block a user