summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-15 14:29:08 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-21 08:27:30 +0200
commit53cfde7204f7bb372f62cefd827762c6880ea345 (patch)
treedeafb4ec1ec8a6d7e6877fef4508137ac2e96cd5
parentca9a734e19e43b9e00bbb6bdd644284b351b9cde (diff)
downloadsamba-53cfde7204f7bb372f62cefd827762c6880ea345.tar.gz
samba-53cfde7204f7bb372f62cefd827762c6880ea345.tar.bz2
samba-53cfde7204f7bb372f62cefd827762c6880ea345.zip
s3: Remove a user of procid_is_me
Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/smbd/sesssetup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 7cef73339a..2658a3a27f 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -333,6 +333,7 @@ static int shutdown_other_smbds(const struct connections_key *key,
void *private_data)
{
struct shutdown_state *state = (struct shutdown_state *)private_data;
+ struct server_id self_pid = messaging_server_id(state->msg_ctx);
DEBUG(10, ("shutdown_other_smbds: %s, %s\n",
server_id_str(talloc_tos(), &crec->pid), crec->addr));
@@ -342,7 +343,7 @@ static int shutdown_other_smbds(const struct connections_key *key,
return 0;
}
- if (procid_is_me(&crec->pid)) {
+ if (procid_equal(&crec->pid, &self_pid)) {
DEBUG(10, ("It's me\n"));
return 0;
}