samlogon_cache: Simplify netsamlogon_cache_have
authorVolker Lendecke <vl@samba.org>
Thu, 1 Dec 2016 20:45:35 +0000 (20:45 +0000)
committerVolker Lendecke <vl@samba.org>
Fri, 16 Dec 2016 16:38:19 +0000 (17:38 +0100)
commitf4ca27f17313abf332cdb32a975a5cd4189c9c6d
tree973d1abfe517667dab73e4b1c3a949a262438c18
parente7ab2ad887f4e5ef54afa14492541b6b3b2b1d8b
samlogon_cache: Simplify netsamlogon_cache_have

We're interested in existence only, we should be able to trust the data
format consistency for this type of query.

netsamlogon_cache_get calls netsamlogon_cache_init for us, now we have
to do it directly.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libsmb/samlogon_cache.c