summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-21 15:31:57 +0100
committerMichael Adam <obnox@samba.org>2008-01-21 22:49:45 +0100
commitc5c38d622754c5b06716cbae41a27af711d22bcf (patch)
tree5fce7bd1c5c02ba0b3f54922b6d34ad403497eda /source3
parent7f2e253efbf5ce9a7195efcd5fee778b219faebb (diff)
downloadsamba-c5c38d622754c5b06716cbae41a27af711d22bcf.tar.gz
samba-c5c38d622754c5b06716cbae41a27af711d22bcf.tar.bz2
samba-c5c38d622754c5b06716cbae41a27af711d22bcf.zip
Fix formatting of multi_sz registry values.
Don't print only the last component. Michael (This used to be commit 654e96208ec847e32797cbd2442ef9e73c014567)
Diffstat (limited to 'source3')
-rw-r--r--source3/libnet/libnet_conf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/libnet/libnet_conf.c b/source3/libnet/libnet_conf.c
index ec05fa7c16..fc797bbeb9 100644
--- a/source3/libnet/libnet_conf.c
+++ b/source3/libnet/libnet_conf.c
@@ -320,8 +320,12 @@ static char *libnet_conf_format_registry_value(TALLOC_CTX *mem_ctx,
case REG_MULTI_SZ: {
uint32 j;
for (j = 0; j < value->v.multi_sz.num_strings; j++) {
- result = talloc_asprintf(mem_ctx, "\"%s\" ",
+ result = talloc_asprintf(mem_ctx, "%s \"%s\" ",
+ result,
value->v.multi_sz.strings[j]);
+ if (result == NULL) {
+ break;
+ }
}
break;
}