diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-06-02 13:42:09 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-06-03 17:23:28 +0200 |
commit | 8486d514f5c964b6c20c36f2e7938ad9cd943c70 (patch) | |
tree | 9bf9558b981f9280c37b70cdf36e4b67742e034e | |
parent | 85e6dcf49c24510ac9c31d56e8d7d1873d9cc638 (diff) | |
download | samba-8486d514f5c964b6c20c36f2e7938ad9cd943c70.tar.gz samba-8486d514f5c964b6c20c36f2e7938ad9cd943c70.tar.bz2 samba-8486d514f5c964b6c20c36f2e7938ad9cd943c70.zip |
s3:smbd/close: avoid procid_is_me()
metze
-rw-r--r-- | source3/smbd/close.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 4b7f694510..3045990b98 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -170,6 +170,7 @@ static int compare_share_mode_times(const void *p1, const void *p2) static void notify_deferred_opens(struct smbd_server_connection *sconn, struct share_mode_lock *lck) { + struct server_id self = messaging_server_id(sconn->msg_ctx); uint32_t i, num_deferred; struct share_mode_entry *deferred; @@ -231,7 +232,7 @@ static void notify_deferred_opens(struct smbd_server_connection *sconn, for (i=0; i<num_deferred; i++) { struct share_mode_entry *e = &deferred[i]; - if (procid_is_me(&e->pid)) { + if (procid_equal(&self, &e->pid)) { /* * We need to notify ourself to retry the open. Do * this by finding the queued SMB record, moving it to |