mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Initialize the sa_flags member of an auto struct sigaction variable.
It contained whatever garbage happened to be on the stack. PR: bin/27457 (not confirmed yet, but almost certain) MFC after: 1 day
This commit is contained in:
parent
77a7881dac
commit
c95abc0ee8
1 changed files with 1 additions and 0 deletions
|
|
@ -651,6 +651,7 @@ main(argc,argv)
|
|||
sigaddset(&sa.sa_mask, SIGALRM);
|
||||
sigaddset(&sa.sa_mask, SIGINT);
|
||||
sa.sa_handler = async_handler;
|
||||
sa.sa_flags = 0;
|
||||
|
||||
sigaction(SIGIO, &sa, NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue