Commit 4419699
committed
Handle errors returned by msg_handler
This change handles errors returned by msg_handler. It prevents
the probe_worker_runfn function from crashing, when msg_handler
returns NULL and the probe_res pointer is dereferenced.
For example, the probe_worker function could return NULL when
calling chroot without root privileges.1 parent ec072be commit 4419699
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
| |||
0 commit comments