From: Michael Adam Date: Sat, 7 Jul 2007 21:41:59 +0000 (+0000) Subject: r23746: Fix missing assignments to target string of asprintf in import function. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b1bf7c1f49f737ca3cbee96b184e3b21fdc4931;p=thirdparty%2Fsamba.git r23746: Fix missing assignments to target string of asprintf in import function. Michael --- diff --git a/source/utils/net_conf.c b/source/utils/net_conf.c index 6f23a001776..febc8dc9e13 100644 --- a/source/utils/net_conf.c +++ b/source/utils/net_conf.c @@ -527,7 +527,7 @@ static int import_process_service(TALLOC_CTX *ctx, } break; case P_OCTAL: - talloc_asprintf(ctx, "%s", octal_string(*(int *)ptr)); + valstr = talloc_asprintf(ctx, "%s", octal_string(*(int *)ptr)); break; case P_LIST: valstr = talloc_strdup(ctx, ""); @@ -553,7 +553,7 @@ static int import_process_service(TALLOC_CTX *ctx, break; case P_INTEGER: valtype = "dword"; - talloc_asprintf(ctx, "%d", *(int *)ptr); + valstr = talloc_asprintf(ctx, "%d", *(int *)ptr); break; case P_SEP: break;