1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

r19779: Fail properly on talloc_strdup failure

(This used to be commit b57e446789530cb7e18e107478ca8b59a19d990f)
This commit is contained in:
Volker Lendecke 2006-11-19 10:54:57 +00:00 committed by Gerald (Jerry) Carter
parent e82cd437cc
commit 76b320c8df

View File

@ -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 )