diff options
author | Günther Deschner <gd@samba.org> | 2013-12-10 17:39:54 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2013-12-12 13:34:50 +0100 |
commit | 67e0eaa1d04c91f17fe8f0e50b446385517625f5 (patch) | |
tree | df85d035f08f354abfa33cdd2432b0d52c199931 /source3/libgpo | |
parent | bc870ee8453640049827136d48f49b9e6cccc594 (diff) | |
download | samba-67e0eaa1d04c91f17fe8f0e50b446385517625f5.tar.gz |
libgpo: make sure we correctly can store the group policy state.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/libgpo')
-rw-r--r-- | source3/libgpo/gpo_reg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libgpo/gpo_reg.c b/source3/libgpo/gpo_reg.c index 5142e919cc9..d35c7db7be4 100644 --- a/source3/libgpo/gpo_reg.c +++ b/source3/libgpo/gpo_reg.c @@ -285,7 +285,7 @@ static WERROR gp_store_reg_gpovals(TALLOC_CTX *mem_ctx, W_ERROR_NOT_OK_RETURN(werr); werr = gp_store_reg_val_sz(mem_ctx, key, "SOM", - gpo->link); + gpo->link ? gpo->link : ""); W_ERROR_NOT_OK_RETURN(werr); werr = gp_store_reg_val_sz(mem_ctx, key, "DisplayName", @@ -293,7 +293,7 @@ static WERROR gp_store_reg_gpovals(TALLOC_CTX *mem_ctx, W_ERROR_NOT_OK_RETURN(werr); werr = gp_store_reg_val_sz(mem_ctx, key, "WQL-Id", - NULL); + ""); W_ERROR_NOT_OK_RETURN(werr); return werr; @@ -542,7 +542,7 @@ WERROR gp_reg_state_store(TALLOC_CTX *mem_ctx, werr = gp_store_reg_gpovals(mem_ctx, key, gpo); if (!W_ERROR_IS_OK(werr)) { DEBUG(0,("gp_reg_state_store: " - "gpo_store_reg_gpovals failed for %s: %s\n", + "gp_store_reg_gpovals failed for %s: %s\n", gpo->display_name, win_errstr(werr))); goto done; } |