[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-585-gcafde6c

Jeremy Allison jra at samba.org
Mon Dec 10 23:07:04 GMT 2007


The branch, v3-2-test has been updated
       via  cafde6c37259de587d3775a2d229abd253d2376d (commit)
      from  b40efc2fe63a3420b62fbf1ea8936112c5a24bdc (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit cafde6c37259de587d3775a2d229abd253d2376d
Author: Jeremy Allison <jra at samba.org>
Date:   Mon Dec 10 15:06:31 2007 -0800

    Ensure we have a non-null flags. Pointed out by Andreas Schneider <anschneider at suse.de>.
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source/libsmb/namequery.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/namequery.c b/source/libsmb/namequery.c
index c0d6b6e..819147d 100644
--- a/source/libsmb/namequery.c
+++ b/source/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));
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list