From: Jeremy Allison Date: Tue, 28 Jan 2020 00:42:11 +0000 (-0800) Subject: s3: smbd: dfs: Apply some README.Coding to parse_msdfs_symlink(). X-Git-Tag: ldb-2.1.1~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a211c640878d856e859ab2fdfbbe61036240b8eb;p=thirdparty%2Fsamba.git s3: smbd: dfs: Apply some README.Coding to parse_msdfs_symlink(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 0ba9810d097..2d784430ebf 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -538,17 +538,17 @@ bool parse_msdfs_symlink(TALLOC_CTX *ctx, temp = talloc_strdup(ctx, target); if (!temp) { - return False; + return false; } prot = strtok_r(temp, ":", &saveptr); if (!prot) { DEBUG(0,("parse_msdfs_symlink: invalid path !\n")); - return False; + return false; } alt_path = talloc_array(ctx, char *, MAX_REFERRAL_COUNT); if (!alt_path) { - return False; + return false; } /* parse out the alternate paths */ @@ -569,7 +569,7 @@ bool parse_msdfs_symlink(TALLOC_CTX *ctx, struct referral, count); if(reflist == NULL) { TALLOC_FREE(alt_path); - return False; + return false; } } else { reflist = *preflist = NULL; @@ -592,19 +592,19 @@ bool parse_msdfs_symlink(TALLOC_CTX *ctx, "\\%s", p); if (!reflist[i].alternate_path) { - return False; + return false; } reflist[i].proximity = 0; reflist[i].ttl = REFERRAL_TTL; - DEBUG(10, ("parse_msdfs_symlink: Created alt path: %s\n", - reflist[i].alternate_path)); + DBG_DEBUG("Created alt path: %s\n", + reflist[i].alternate_path); } *refcount = count; TALLOC_FREE(alt_path); - return True; + return true; } /**********************************************************************