summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-07-04 18:15:36 +0200
committerVolker Lendecke <vl@samba.org>2010-07-05 11:06:25 +0200
commit5387d6ee16d575251d656ce3e17b933e1be52343 (patch)
tree7ea44cbb56c4c46c8f9f6b8097dc5795d1b1be70
parent33242471e5ad974bf96d2340c9aa8d56941795e7 (diff)
downloadsamba-5387d6ee16d575251d656ce3e17b933e1be52343.tar.gz
samba-5387d6ee16d575251d656ce3e17b933e1be52343.tar.bz2
samba-5387d6ee16d575251d656ce3e17b933e1be52343.zip
s3: Remove procid_self() from claim_connection()
-rw-r--r--source3/smbd/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c
index 1b41931279..5acc8218b7 100644
--- a/source3/smbd/connection.c
+++ b/source3/smbd/connection.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/globals.h"
/****************************************************************************
Delete a connection record.
@@ -138,7 +139,7 @@ bool claim_connection(connection_struct *conn, const char *name)
/* fill in the crec */
ZERO_STRUCT(crec);
crec.magic = 0x280267;
- crec.pid = procid_self();
+ crec.pid = sconn_server_id(conn->sconn);
crec.cnum = conn->cnum;
crec.uid = conn->server_info->utok.uid;
crec.gid = conn->server_info->utok.gid;