From b5a75ec402d54e85d199c24b1314975b98258593 Mon Sep 17 00:00:00 2001
From: Michael Adam <obnox@samba.org>
Date: Sun, 13 Apr 2008 01:47:16 +0200
Subject: registry cachehook: add talloc failed debug messages.

Michael
(This used to be commit 9841ee7fd429c7ff367dbb43b754cd5b6f53c065)
---
 source3/registry/reg_cachehook.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/source3/registry/reg_cachehook.c b/source3/registry/reg_cachehook.c
index d59dc4cbd5..eb2884fc26 100644
--- a/source3/registry/reg_cachehook.c
+++ b/source3/registry/reg_cachehook.c
@@ -38,9 +38,15 @@ static char *keyname_to_path(TALLOC_CTX *mem_ctx, const char *keyname)
 
 	path = talloc_asprintf(mem_ctx, "\\%s", keyname);
 	if (path == NULL) {
+		DEBUG(0, ("talloc_asprintf failed!\n"));
 		return NULL;
 	}
+
 	path = talloc_string_sub(mem_ctx, path, "\\", "/");
+	if (path == NULL) {
+		DEBUG(0, ("talloc_string_sub_failed!\n"));
+	}
+
 	return path;
 }
 
-- 
cgit