summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-07-08 18:00:07 +0200
committerVolker Lendecke <vl@samba.org>2010-08-07 13:16:48 +0200
commit77c63149a3c91798445a56b31624036473e7f570 (patch)
treeb396384a8bf30cb2468b31d56881a51dccdd8baf /source3
parent21229178bd4703a70f222e102bd2588449ac023b (diff)
downloadsamba-77c63149a3c91798445a56b31624036473e7f570.tar.gz
samba-77c63149a3c91798445a56b31624036473e7f570.tar.bz2
samba-77c63149a3c91798445a56b31624036473e7f570.zip
s3: Remove procid_self() from connections_fetch_entry()
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 7f9c74636a..b95b4cd377 100644
--- a/source3/lib/conn_tdb.c
+++ b/source3/lib/conn_tdb.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/globals.h"
static struct db_context *connections_db_ctx(bool rw)
{
@@ -55,7 +56,7 @@ struct db_record *connections_fetch_entry(TALLOC_CTX *mem_ctx,
TDB_DATA key;
ZERO_STRUCT(ckey);
- ckey.pid = procid_self();
+ ckey.pid = sconn_server_id(conn->sconn);
ckey.cnum = conn->cnum;
strlcpy(ckey.name, name, sizeof(ckey.name));