$NetBSD: patch-ao,v 1.4 2013/08/12 02:45:55 taca Exp $

--- libsmb/samlogon_cache.c.orig	2013-07-29 18:55:18.000000000 +0000
+++ libsmb/samlogon_cache.c
@@ -212,7 +212,7 @@ struct netr_SamInfo3 *netsamlogon_cache_
 	if (!netsamlogon_cache_init()) {
 		DEBUG(0,("netsamlogon_cache_get: cannot open %s for write!\n",
 			NETSAMLOGON_TDB));
-		return false;
+		return NULL;
 	}
 
 	/* Prepare key as DOMAIN-SID/USER-RID string */
