r22484: Check for the talloc_strdup to succeed.
authorGünther Deschner <gd@samba.org>
Mon, 23 Apr 2007 10:04:15 +0000 (10:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:38 +0000 (12:19 -0500)
Guenther

source/libgpo/gpo_fetch.c

index 3347a36b07e554ac46d581e4162ff8f00cb99436..abc5ab46844100adfcd7cb92fe59de7bb457e100 100644 (file)
@@ -188,6 +188,7 @@ NTSTATUS ads_gpo_get_sysvol_gpt_version(ADS_STRUCT *ads,
 
        if (name && *display_name) {
                *display_name = talloc_strdup(mem_ctx, name);
 
        if (name && *display_name) {
                *display_name = talloc_strdup(mem_ctx, name);
+               NT_STATUS_HAVE_NO_MEMORY(*display_name);
        }
 
        return NT_STATUS_OK;
        }
 
        return NT_STATUS_OK;