Commit e9d0212
committed
drbdadm: fix segfault if we don't know about peer devices
Trying to do below "exploded" for me:
```
drbdsetup show > tmp
drbdadm -c tmp -d up all
```
With an incomplete config file (like the one obtained from "drbdsetup show"),
we may not know about peer volumes. Avoid to dereference NULL volumes.1 parent abd47fb commit e9d0212
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2027 | 2027 | | |
2028 | 2028 | | |
2029 | 2029 | | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
2030 | 2036 | | |
2031 | 2037 | | |
2032 | 2038 | | |
| |||
2371 | 2377 | | |
2372 | 2378 | | |
2373 | 2379 | | |
2374 | | - | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
2375 | 2383 | | |
2376 | 2384 | | |
2377 | 2385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
| 485 | + | |
| 486 | + | |
486 | 487 | | |
487 | 488 | | |
488 | 489 | | |
| |||
0 commit comments