summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-08-25 00:49:17 +0200
committerMichael Adam <obnox@samba.org>2011-10-11 14:17:57 +0200
commit33405972b233055dbae0e0d88710ce2b7d59c4c3 (patch)
tree04a27d147ece234f7368a1b9db705fbff0cf49ed
parent506349832ce2f323313b7f2eb043e0ae8d63e63a (diff)
downloadsamba-33405972b233055dbae0e0d88710ce2b7d59c4c3.tar.gz
samba-33405972b233055dbae0e0d88710ce2b7d59c4c3.tar.bz2
samba-33405972b233055dbae0e0d88710ce2b7d59c4c3.zip
s3:rpc_server: convert srvsvc to only use dbwrap wrapper functions
Avoid direct use of the db_record and db_context structs.
-rw-r--r--source3/rpc_server/srvsvc/srv_srvsvc_nt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
index d7bec0360e..5db268c1e6 100644
--- a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
@@ -79,11 +79,14 @@ static int pipe_enum_fn( struct db_record *rec, void *p)
int i = fenum->ctr3->count;
char *fullpath = NULL;
const char *username;
+ TDB_DATA value;
- if (rec->value.dsize != sizeof(struct pipe_open_rec))
+ value = dbwrap_record_get_value(rec);
+
+ if (value.dsize != sizeof(struct pipe_open_rec))
return 0;
- memcpy(&prec, rec->value.dptr, sizeof(struct pipe_open_rec));
+ memcpy(&prec, value.dptr, sizeof(struct pipe_open_rec));
if ( !process_exists(prec.pid) ) {
return 0;