git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e82cd43
)
r19779: Fail properly on talloc_strdup failure
author
Volker Lendecke
<vlendec@samba.org>
Sun, 19 Nov 2006 10:54:57 +0000
(10:54 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:15:55 +0000
(12:15 -0500)
(This used to be commit
b57e446789530cb7e18e107478ca8b59a19d990f
)
source3/registry/reg_frontend.c
patch
|
blob
|
history
diff --git
a/source3/registry/reg_frontend.c
b/source3/registry/reg_frontend.c
index 14531b52f7297933e5a36d33ba91184d03b6769c..d79e75b99520592d10940955d9661fb33efad4bf 100644
(file)
--- a/
source3/registry/reg_frontend.c
+++ b/
source3/registry/reg_frontend.c
@@
-369,9
+369,11
@@
WERROR regkey_open_internal( TALLOC_CTX *mem_ctx,
/* initialization */
keyinfo->type = REG_KEY_GENERIC;
- keyinfo->name = talloc_strdup( keyinfo, path );
-
-
+ if (!(keyinfo->name = talloc_strdup(keyinfo, path))) {
+ result = WERR_NOMEM;
+ goto done;
+ }
+
/* Tag this as a Performance Counter Key */
if( StrnCaseCmp(path, KEY_HKPD, strlen(KEY_HKPD)) == 0 )