Commit e1fad8a
committed
iolog_write_info_file_legacy: ignore evlog->runargv if NULL
The sudo logsrvd protocol allows runargv to be ommitted, so don't
try to dereference runargv if it is not set. This fixes a crash
in sudo_logsrvd when an AcceptMessage is received that has no runargv
InfoMessage included.
First reported by Pedro Henrique de Almeida Silva of the
Stack Security Intelligence Research Team
Also reported by Samuel Ferenc Berecz and Oguz Bektas1 parent 64421ac commit e1fad8a
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
0 commit comments