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/auth | |
parent | d5a11f9679be9d053838074f1dad5a0ca880750f (diff) | |
download | samba-aa982895e5c13497144740e90ff9646e1d1cf995.tar.gz samba-aa982895e5c13497144740e90ff9646e1d1cf995.tar.bz2 samba-aa982895e5c13497144740e90ff9646e1d1cf995.zip |
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/auth')
-rw-r--r-- | source3/auth/token_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index d6cd2ea3a8..e739fdaabe 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -84,7 +84,7 @@ NT_USER_TOKEN *get_root_nt_token( void ) cache_data = memcache_lookup_talloc( NULL, SINGLETON_CACHE_TALLOC, - data_blob_string_const("root_nt_token")); + data_blob_string_const_null("root_nt_token")); if (cache_data != NULL) { return talloc_get_type_abort( @@ -109,7 +109,7 @@ NT_USER_TOKEN *get_root_nt_token( void ) memcache_add_talloc( NULL, SINGLETON_CACHE_TALLOC, - data_blob_string_const("root_nt_token"), token); + data_blob_string_const_null("root_nt_token"), token); return token; } |