Commit 2347469
committed
wh_server: fix server comm not initialized from config
wh_Server_Init never assigns server->comm from config->comm before
calling wh_CommServer_Init(server->comm, ...). That passes an
uninitialized (zeroed) pointer to wh_CommServer_Init and will likely crash
or behave incorrectly.
Suggested minimal fix
Assign server->comm = config->comm (and validate config->comm != NULL)
before calling wh_CommServer_Init.
Signed-off-by: Badr Bacem KAABIA <[email protected]>1 parent 04b199f commit 2347469
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
0 commit comments