summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-18 17:57:21 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-18 17:57:21 +0000
commita394a4a8fa2c4c0ff03fbc5bc4ea925245ec1fed (patch)
tree37225bf66089879429df84fdc144bebe46bfebe4 /source3/rpc_server
parentccc8585567804d6a7e6f684a97d58871e2fd9f8a (diff)
downloadsamba-a394a4a8fa2c4c0ff03fbc5bc4ea925245ec1fed.tar.gz
samba-a394a4a8fa2c4c0ff03fbc5bc4ea925245ec1fed.tar.bz2
samba-a394a4a8fa2c4c0ff03fbc5bc4ea925245ec1fed.zip
updating reg_value_info() parsing code to take BUFFER2 instead of just
a char*. now copes with multiple types. (This used to be commit 3df7c903c5b70f336294a95ad864aedbacf544b0)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_reg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_reg.c b/source3/rpc_server/srv_reg.c
index ab7e4cf3ec..18781d0cd0 100644
--- a/source3/rpc_server/srv_reg.c
+++ b/source3/rpc_server/srv_reg.c
@@ -187,6 +187,8 @@ static void reg_reply_info(REG_Q_INFO *q_u,
uint32 status = 0;
REG_R_INFO r_u;
+ uint32 type = 1;
+ BUFFER2 buf;
DEBUG(5,("reg_info: %d\n", __LINE__));
@@ -197,7 +199,9 @@ static void reg_reply_info(REG_Q_INFO *q_u,
if (status == 0)
{
- make_reg_r_info(&r_u, 1, "LanmanNT", status);
+ char *key = "LanmanNT";
+ make_buffer2(&buf, key, strlen(key));
+ make_reg_r_info(&r_u, &type, &buf, status);
}