diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-10-13 05:20:26 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-10-13 05:20:26 +0200 |
commit | aa982895e5c13497144740e90ff9646e1d1cf995 (patch) | |
tree | f21159a823cd8fd329dc073a841c576da2450fcc /source3/lib/access.c | |
parent | d5a11f9679be9d053838074f1dad5a0ca880750f (diff) | |
download | samba-aa982895e5c13497144740e90ff9646e1d1cf995.tar.gz |
Add data_blob_string_const_null() function that includes the terminating
null byte and use it in Samba 3.
This matches the behaviour prior to my data_blob changes.
Diffstat (limited to 'source3/lib/access.c')
-rw-r--r-- | source3/lib/access.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/access.c b/source3/lib/access.c index 6a445f8139c..966d8ce87c3 100644 --- a/source3/lib/access.c +++ b/source3/lib/access.c @@ -104,7 +104,7 @@ static bool string_match(const char *tok,const char *s) if (memcache_lookup( NULL, SINGLETON_CACHE, - data_blob_string_const("yp_default_domain"), + data_blob_string_const_null("yp_default_domain"), &tmp)) { SMB_ASSERT(tmp.length > 0); @@ -116,8 +116,8 @@ static bool string_match(const char *tok,const char *s) memcache_add( NULL, SINGLETON_CACHE, - data_blob_string_const("yp_default_domain"), - data_blob_string_const(mydomain?mydomain:"")); + data_blob_string_const_null("yp_default_domain"), + data_blob_string_const_null(mydomain?mydomain:"")); } if (!mydomain) { |