summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-15 11:50:01 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-16 13:19:32 +0100
commitf166f919882c9b79cca70af73fefd0b3b54bc2a6 (patch)
tree53577f5c7093a819c54bf938661e6bfc28a3ba51 /source3
parent35605fa0a3c44f1d8da2c06c1b17170aeca2bbef (diff)
downloadsamba-f166f919882c9b79cca70af73fefd0b3b54bc2a6.tar.gz
samba-f166f919882c9b79cca70af73fefd0b3b54bc2a6.tar.bz2
samba-f166f919882c9b79cca70af73fefd0b3b54bc2a6.zip
s3:lib/conn_tdb: avoid using sconn_server_id()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/conn_tdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/conn_tdb.c b/source3/lib/conn_tdb.c
index 72ba7c6806..f600871411 100644
--- a/source3/lib/conn_tdb.c
+++ b/source3/lib/conn_tdb.c
@@ -22,6 +22,7 @@
#include "smbd/globals.h"
#include "dbwrap/dbwrap.h"
#include "dbwrap/dbwrap_open.h"
+#include "messages.h"
static struct db_context *connections_db_ctx(bool rw)
{
@@ -59,7 +60,7 @@ struct db_record *connections_fetch_entry(TALLOC_CTX *mem_ctx,
TDB_DATA key;
ZERO_STRUCT(ckey);
- ckey.pid = sconn_server_id(conn->sconn);
+ ckey.pid = messaging_server_id(conn->sconn->msg_ctx);
ckey.cnum = conn->cnum;
strlcpy(ckey.name, name, sizeof(ckey.name));