From 8596a1b60996eda7e51bfd30d625d3201881d2af Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 10 Dec 2007 15:06:31 -0800 Subject: Ensure we have a non-null flags. Pointed out by Andreas Schneider . Jeremy. (This used to be commit cafde6c37259de587d3775a2d229abd253d2376d) --- source3/libsmb/namequery.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/libsmb/namequery.c') 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)); -- cgit