diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/namequery.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index c0d6b6e91e..819147d48f 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -835,6 +835,13 @@ bool getlmhostsent(TALLOC_CTX *ctx, XFILE *fp, char **pp_name, int *name_type, continue; } + if (!flags) { + flags = talloc_strdup(ctx, ""); + if (!flags) { + continue; + } + } + DEBUG(4, ("getlmhostsent: lmhost entry: %s %s %s\n", ip, name, flags)); |