svn commit: samba r19779 - in branches/SAMBA_3_0/source/registry: .
vlendec at samba.org
vlendec at samba.org
Sun Nov 19 10:54:57 GMT 2006
Author: vlendec
Date: 2006-11-19 10:54:57 +0000 (Sun, 19 Nov 2006)
New Revision: 19779
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19779
Log:
Fail properly on talloc_strdup failure
Modified:
branches/SAMBA_3_0/source/registry/reg_frontend.c
Changeset:
Modified: branches/SAMBA_3_0/source/registry/reg_frontend.c
===================================================================
--- branches/SAMBA_3_0/source/registry/reg_frontend.c 2006-11-19 10:50:33 UTC (rev 19778)
+++ branches/SAMBA_3_0/source/registry/reg_frontend.c 2006-11-19 10:54:57 UTC (rev 19779)
@@ -369,9 +369,11 @@
/* 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 )
More information about the samba-cvs
mailing list