diff options
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/super-ddf.c b/super-ddf.c index 870efd8..c2c562f 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -1260,7 +1260,11 @@ static int match_home_ddf(struct supertype *st, char *homehost) * the hostname */ struct ddf_super *ddf = st->sb; - int len = strlen(homehost); + int len; + + if (!homehost) + return 0; + len = strlen(homehost); return (memcmp(ddf->controller.guid, T10, 8) == 0 && len < sizeof(ddf->controller.vendor_data) && |