Commit 9dc6142
polycubed: fix segfault on init (#114)
* polycubed: fix segfault on init
When SIGINT was received at initialization time there was segfault because
the handler tried to delete the core and rest server that were not allocated
yet. This commit adds a check to be sure that core and rest server are
allocated when the shutdown handler is invoked.
Fixes: 0df5d81 ("Initial commit")
Signed-off-by: Mauricio Vasquez B <mauriciovasquezbernal@gmail.com>
* Update polycubed.cpp1 parent 1525d37 commit 9dc6142
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
0 commit comments