s3: Remove a user of procid_is_me
authorVolker Lendecke <vl@samba.org>
Fri, 15 Jun 2012 12:29:08 +0000 (14:29 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 21 Jun 2012 06:27:30 +0000 (08:27 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/sesssetup.c

index 7cef73339aa5d0d520f30ed7b10b0df55288f905..2658a3a27f756d70fc3c3d2524df5710942f51fb 100644 (file)
@@ -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;
        }