| Fix segmentation fault of mdconfig(8). |
| |
| diff -ru --exclude-from freebsd-src-diff-exclude-names /var/archive3/public/freebsd-releng-10.4-src/sbin/mdconfig/mdconfig.c freebsd-10.4/sbin/mdconfig/mdconfig.c |
| --- /var/archive3/public/freebsd-releng-10.4-src/sbin/mdconfig/mdconfig.c 2017-09-29 08:21:18.000000000 +0800 |
| +++ freebsd-10.4/sbin/mdconfig/mdconfig.c 2019-08-17 23:31:03.697352189 +0800 |
| @@ -452,6 +452,7 @@ |
| } |
| gc = &pp->lg_config; |
| type = geom_config_get(gc, "type"); |
| + if(!type) continue; |
| if (strcmp(type, "vnode") == 0) { |
| file = geom_config_get(gc, "file"); |
| if (fflag != NULL && |